Hi There,
I am routing a DID to a2billing using this
'92217019656' => 1. Goto(a2billing-did|s|1) [pbx_config]
2. Hangup() [pbx_config]
where as my a2billing-did context looks like this
's' => 1. DeadAgi(a2billing.php|1|did) [pbx_config]
2. Hangup() [pbx_config]
The problem is , when i call from my cell phone to this DID , i've already added it in the wbe admin and also added the destination for it , it just sends the call , does all of this
[Jul 29 03:01:24] -- Executing Goto("SIP/202.125.130.98-0898acd8", "a2billing-did|s|1") in new stack
[Jul 29 03:01:24] -- Goto (a2billing-did,s,1)
[Jul 29 03:01:24] -- Executing DeadAGI("SIP/202.125.130.98-0898acd8", "a2billing.php|1|did") in new stack
[Jul 29 03:01:24] -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Jul 29 03:01:24] AGI Tx >> agi_request: a2billing.php
[Jul 29 03:01:24] AGI Tx >> agi_channel: SIP/202.125.130.98-0898acd8
[Jul 29 03:01:24] AGI Tx >> agi_language: en
[Jul 29 03:01:24] AGI Tx >> agi_type: SIP
[Jul 29 03:01:24] AGI Tx >> agi_uniqueid: 1154156484.25505
[Jul 29 03:01:24] AGI Tx >> agi_callerid: 03008636664
[Jul 29 03:01:24] AGI Tx >> agi_calleridname: 03008636664
[Jul 29 03:01:24] AGI Tx >> agi_callingpres: 0
[Jul 29 03:01:24] AGI Tx >> agi_callingani2: 0
[Jul 29 03:01:24] AGI Tx >> agi_callington: 0
[Jul 29 03:01:24] AGI Tx >> agi_callingtns: 0
[Jul 29 03:01:24] AGI Tx >> agi_dnid: 92217019656
[Jul 29 03:01:24] AGI Tx >> agi_rdnis: unknown
[Jul 29 03:01:24] AGI Tx >> agi_context: a2billing-did
[Jul 29 03:01:24] AGI Tx >> agi_extension: s
[Jul 29 03:01:24] AGI Tx >> agi_priority: 1
[Jul 29 03:01:24] AGI Tx >> agi_enhanced: 0.0
[Jul 29 03:01:24] AGI Tx >> agi_accountcode:
[Jul 29 03:01:24] AGI Tx >>
[Jul 29 03:01:24] AGI Rx << VERBOSE "IDCONFIG : 1 " 1
[Jul 29 03:01:24] a2billing.php|1|did: IDCONFIG : 1
[Jul 29 03:01:24] AGI Tx >> 200 result=1
[Jul 29 03:01:24] AGI Rx << VERBOSE "" 1
[Jul 29 03:01:24] a2billing.php|1|did:
[Jul 29 03:01:24] AGI Tx >> 200 result=1
[Jul 29 03:01:24] AGI Rx << VERBOSE "MODE : did " 1
[Jul 29 03:01:24] a2billing.php|1|did: MODE : did
[Jul 29 03:01:24] AGI Tx >> 200 result=1
[Jul 29 03:01:24] AGI Rx << VERBOSE "" 1
[Jul 29 03:01:24] a2billing.php|1|did:
[Jul 29 03:01:24] AGI Tx >> 200 result=1
[Jul 29 03:01:24] AGI Rx << SET CALLERID 03008636664
[Jul 29 03:01:24] AGI Tx >> 200 result=1
[Jul 29 03:01:24] AGI Rx << ANSWER
[Jul 29 03:01:24] AGI Tx >> 200 result=0
[Jul 29 03:01:24] -- AGI Script a2billing.php completed, returning 0
[Jul 29 03:01:24] -- Executing Hangup("SIP/202.125.130.98-0898acd8", "") in new stack
[Jul 29 03:01:24] == Spawn extension (a2billing-did, s, 2) exited non-zero on 'SIP/202.125.130.98-0898acd8'
[Jul 29 03:01:25] -- Executing Goto("SIP/202.125.130.98-0898acd8", "a2billing-did|s|1") in new stack
[Jul 29 03:01:25] -- Goto (a2billing-did,s,1)
[Jul 29 03:01:25] -- Executing DeadAGI("SIP/202.125.130.98-0898acd8", "a2billing.php|1|did") in new stack
[Jul 29 03:01:25] -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Jul 29 03:01:25] AGI Tx >> agi_request: a2billing.php
[Jul 29 03:01:25] AGI Tx >> agi_channel: SIP/202.125.130.98-0898acd8
[Jul 29 03:01:25] AGI Tx >> agi_language: en
[Jul 29 03:01:25] AGI Tx >> agi_type: SIP
[Jul 29 03:01:25] AGI Tx >> agi_uniqueid: 1154156485.25506
[Jul 29 03:01:25] AGI Tx >> agi_callerid: 03008636664
[Jul 29 03:01:25] AGI Tx >> agi_calleridname: 03008636664
[Jul 29 03:01:25] AGI Tx >> agi_callingpres: 0
[Jul 29 03:01:25] AGI Tx >> agi_callingani2: 0
[Jul 29 03:01:25] AGI Tx >> agi_callington: 0
[Jul 29 03:01:25] AGI Tx >> agi_callingtns: 0
[Jul 29 03:01:25] AGI Tx >> agi_dnid: 92217019656
[Jul 29 03:01:25] AGI Tx >> agi_rdnis: unknown
[Jul 29 03:01:25] AGI Tx >> agi_context: a2billing-did
[Jul 29 03:01:25] AGI Tx >> agi_extension: s
[Jul 29 03:01:25] AGI Tx >> agi_priority: 1
[Jul 29 03:01:25] AGI Tx >> agi_enhanced: 0.0
[Jul 29 03:01:25] AGI Tx >> agi_accountcode:
[Jul 29 03:01:25] AGI Tx >>
[Jul 29 03:01:25] AGI Rx << VERBOSE "IDCONFIG : 1 " 1
[Jul 29 03:01:25] a2billing.php|1|did: IDCONFIG : 1
[Jul 29 03:01:25] AGI Tx >> 200 result=1
[Jul 29 03:01:25] AGI Rx << VERBOSE "" 1
[Jul 29 03:01:25] a2billing.php|1|did:
[Jul 29 03:01:25] AGI Tx >> 200 result=1
[Jul 29 03:01:25] AGI Rx << VERBOSE "MODE : did " 1
[Jul 29 03:01:25] a2billing.php|1|did: MODE : did
[Jul 29 03:01:25] AGI Tx >> 200 result=1
[Jul 29 03:01:25] AGI Rx << VERBOSE "" 1
[Jul 29 03:01:25] a2billing.php|1|did:
[Jul 29 03:01:25] AGI Tx >> 200 result=1
[Jul 29 03:01:25] AGI Rx << SET CALLERID 03008636664
[Jul 29 03:01:25] AGI Tx >> 200 result=1
[Jul 29 03:01:25] AGI Rx << ANSWER
[Jul 29 03:01:25] AGI Tx >> 200 result=0
[Jul 29 03:01:25] -- AGI Script a2billing.php completed, returning 0
[Jul 29 03:01:25] -- Executing Hangup("SIP/202.125.130.98-0898acd8", "") in new stack
[Jul 29 03:01:25] == Spawn extension (a2billing-did, s, 2) exited non-zero on 'SIP/202.125.130.98-0898acd
and then the call drops , no reason given, what am i doing wrong , can someone please help me out ?
Best Regards
Junaid Saeed Uppal
|