Avatar of steviedeehook
steviedeehook
Flag for South Africa

asked on 

Asterisk Dialplan to save active caller ID for PHP popup

Hey,
I am trying to get cid information for an extensions on a php page.
As I understand it, the options for doing this are:
1. editing the dialplan to write this caller ID to a mysql table
2. editing the dialplan t write the caller ID to an xml file that the page parses.
I tried number 2 as there is a nice example http://www.linuxjournal.com/article/9159 that would be nice to follow.
So I added the line to my extensions_custom.conf as in code snippet:

But I'm not getting the files and I can't see at the cli that it's even seeing the rule.

Any advice or help would be greatly appreciated.

Steven
from-internal-custom]
 
;1234,1,Playback(demo-congrats)         ; extensions can dial 1234
;1234,2,Hangup()
;h,1,Hangup()
;include => custom-recordme                     ; extensions can also dial 5678
 
; Stevenh added this to try save call information to files when calls are transferred.
exten => s,n,system(echo "IN#${CALLERID(name)}#${CALLERID(number)}#${UNIQUEID}"> /tmp/panels/cid/${UNIQUEID})
 
; Stevenh added this to try save call information to files when calls are transferred.
[from-pstn-custom]
exten => s,n,system(echo "IN#${CALLERID(name)}#${CALLERID(number)}#${UNIQUEID}"> /tmp/panels/cid/${UNIQUEID})

Open in new window

PHPIP Telephony

Avatar of undefined
Last Comment
steviedeehook

8/22/2022 - Mon