[Asterisk-Users] Call ID WinPopup working one-line example withoutscratch file

Simon Brown Simon.Brown at otterson.com.au
Wed Nov 17 21:51:18 MST 2004


I thought I might try this, but smbclient returns an error - cannot resolve
host - a PING of the host is fine.
Any ideas?

Simon 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Thomas Hutton
Sent: Thursday, 18 November 2004 15:24
To: AsteriskUserMaillist
Subject: [Asterisk-Users] Call ID WinPopup working one-line example
withoutscratch file

Here's a tested example that works without any scratch file.  I still had to
use a combination of single and double quote characters, as well as a double
backslash for the \n newline command.

; Extension 200 Call ID Popup Example
exten => 200,1,NoOp(${CALLERID} ${DATETIME}) exten => 200,2,System(/bin/echo
-e "'Incoming Call From: ${CALLERID} \\r
Received: ${DATETIME}'"|/usr/bin/smbclient -M target_netbiosname)
exten => 200,3,Dial,sip/tom|30|t        ; Ring, 30 secs max
exten => 200,4,Congestion

Note: line two wrapped - it needs to be all on one line.
Thanks to Duane and Adam for the ideas.  

It still does nothing to prevent somebody from slipping bad code into their
Call ID string, but as I'm running a private system and only taking Call ID's
directly off the PSTN on a single low volume zap channel, or assigning them
myself at this point.  I'm not too worried someone is going to put in
something like ''""bad command""'' in their string.  It would be nice to know
if there is a check someplace up the food chain in the application to qualify
valid Call ID's- or if that's something possible?

By the way, I'm sorry to start a new thread all the time here but I can't
respond to links from my firefox browser with evolution. (probably an even
greater sin than top posting)

Thomas Hutton

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list