[Asterisk-Users] Call ID WinPopup working one-line example for YAC

Peter Childs peter.childs at nec.com.au
Wed Nov 17 22:20:53 MST 2004


 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 at lists.digium.com
[mailto:asterisk-users-bounces at 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.





More information about the asterisk-users mailing list