Advertisement

07.18.2008 at 08:22AM PDT, ID: 23577139
[x]
Attachment Details

Asterisk Dialplan to save active caller ID for PHP popup

Asked by steviedeehook in Asterisk Open Source Telephony, PHP Scripting Language, PHP and Databases

Tags: Digium, Asterisk, 1.4.17, Freepbx, Trixbox, Dialplan, php, cid, caller ID, PHP, Asterisk CLI, Dialplan

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.

StevenStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
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})
Related Solutions: Dialplan
 
Loading Advertisement...
 
[+][-]07.21.2008 at 03:32PM PDT, ID: 22054958

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 11:25PM PDT, ID: 22056788

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 12:21AM PDT, ID: 22057003

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 03:23AM PDT, ID: 22057686

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 06:46AM PDT, ID: 22059260

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Asterisk Open Source Telephony, PHP Scripting Language, PHP and Databases
Tags: Digium, Asterisk, 1.4.17, Freepbx, Trixbox, Dialplan, php, cid, caller ID, PHP, Asterisk CLI, Dialplan
Sign Up Now!
Solution Provided By: xuserx2000
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.22.2008 at 06:49AM PDT, ID: 22059295

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 06:55AM PDT, ID: 22059340

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628