Thomas Hutton
2004-Nov-17 21:23 UTC
[Asterisk-Users] Call ID WinPopup working one-line example without scratch 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
Linux Dominicana
2004-Nov-17 21:32 UTC
[Asterisk-Users] Any professional web-based management interface out there?
Hello everybody I wonder if I can get any good references of web-based management interfaces of Asterisk? I would rather prefer more on detailed functionalities that a great look, I am willling to work on provide a UI support in case there's one in progress Also, is there's some for a price I would like to see a demo of all of them Regards J.Fach
Peter Childs
2004-Nov-17 22:20 UTC
[Asterisk-Users] Call ID WinPopup working one-line example for YAC
http://sunflowerhead.com/software/yac/index.html
You only need to run the client..
exten => s,4,System(/bin/echo -e "'@CALL${CALLERIDNAME}
~${CALLERIDNUM}'" |
nc -q 0 -w 1 pjcm400 10629 )
Does the trick for me... and YAC has a nice caller history log etc (and
I do like those nice windows ballons etc..!)
The 'nc' here is of course 'netcat' and the options are -q
(quit after
EOF), and -w 1 (only wait for connect for 1 second...)
Thanks guys, this is cool!
Cheers,
Peter
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Thomas
Hutton
Sent: Thursday, 18 November 2004 2:54 PM
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.