asterisk2billing.org http://forum.asterisk2billing.org/ |
|
DID number variable http://forum.asterisk2billing.org/viewtopic.php?f=21&t=10027 |
Page 1 of 1 |
Author: | mxc [ Wed Sep 26, 2012 11:31 am ] |
Post subject: | DID number variable |
Hi everyone. We have Asterisk and A2Billing v1.4 installed and working great. The question is: what variable has the called DID number value. For example, a person calls to DID +74957XXXXX1, $agi->request['agi_dnid'] has the value of extension, in my case it is 2011211e0. Which variable is holding the value of called DID +74957XXXXX1 ? I want to use this value to extend our services, I want to get this value in "callingcard_ivr_authenticate()" (Class.A2Billing.php) function to make additional client authentication. The reason I want to get exact DID number is that 10 numbers (from +74957XXXXX0 to +74957XXXXX9) are on the same extension (that is how our provider sells DID numbers). Thank you. |
Author: | jroper [ Fri Sep 28, 2012 7:53 am ] |
Post subject: | Re: DID number variable |
Hi Is the DID called anywhere in the SIP message, if so, in the dialplan, you would extract the DID, and set the DNID as the DID. Joe |
Author: | mxc [ Mon Oct 01, 2012 11:45 pm ] |
Post subject: | Re: DID number variable |
Thank you Joe for your reply. I've checked opensips log and actually there is the exact DID number in INVITE (74957XXXXX1). M=INVITE RURI=sip:76792#[email protected] F=sip:[email protected] T=sip:76792#[email protected] IP=100.116.157.105 Still the question is how do get this data in Class.A2Billing.php, what variable has the dialplan? jroper wrote: Hi
Is the DID called anywhere in the SIP message, if so, in the dialplan, you would extract the DID, and set the DNID as the DID. Joe |
Author: | jroper [ Tue Oct 02, 2012 7:07 am ] |
Post subject: | Re: DID number variable |
Hi As I mentioned earlier, in the dialplan, set the channel variable, DNID as the DID. Joe |
Author: | mxc [ Wed Oct 03, 2012 1:03 pm ] |
Post subject: | Re: DID number variable |
jroper wrote: Hi As I mentioned earlier, in the dialplan, set the channel variable, DNID as the DID. Joe I've checked all variables changing the dialplan in extension.conf, but still there is no variable with DID number +74957XXXXX1. How do I extract this "T=sip:76792#[email protected]" in my dialplan... : ( EDIT: I want to pass DID number to php script as argv parameter, exten => 2011211e0,n,AGI(a2billing1_4.php, MY_DID) |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |