Hi
Installed form scratch I've had a working setup before without issue. But for some reason on this fresh install when I connect a PBX to make a call its being linked to the general sip.conf context and A2billing is seeing it as an inbound call and not a call from a card. It's not linking to my customer and thus dialling out. FYI in my general for sip.conf I have a2billing_did. In extensions.conf I have
Code:
[a2billing]
include => a2billing_callingcard
include => a2billing_monitoring
include => a2billing_voucher
[a2billing_callingcard]
; CallingCard application
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,DeadAgi(a2billing.php,1)
exten => _X.,n,Hangup
[a2billing_voucher]
exten => _X.,1,Answer(1)
exten => _X.,n,DeadAgi(a2billing.php,1,voucher)
;exten => _X.,n,AGI(a2billing.php,1,voucher44) ; will add 44 in front of the callerID for the CID authentication
exten => _X.,n,Hangup
[a2billing_did]
exten => _X.,1,DeadAgi(a2billing.php,1,did)
exten => _X.,2,Hangup
[a2billing-sip]
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,DeadAgi(a2billing.php,2)
exten => _X.,1,Hangup()
Code:
-- Executing [447842444123@a2billing_did:1] DeadAGI("SIP/52.7.2.21-00000000", "a2billing.php,1,did") in new stack
[Jun 13 07:33:58] WARNING[5525][C-00000000]: res_agi.c:4006 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
<SIP/52.7.2.21-00000000>AGI Tx >> agi_request: a2billing.php
<SIP/52.7.2.21-00000000>AGI Tx >> agi_channel: SIP/52.7.2.21-00000000
<SIP/52.7.2.21-00000000>AGI Tx >> agi_language: en
<SIP/52.7.2.21-00000000>AGI Tx >> agi_type: SIP
<SIP/52.7.2.21-00000000>AGI Tx >> agi_uniqueid: 1434180838.0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_version: 11.17.1
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callerid: 01613214312
<SIP/52.7.2.21-00000000>AGI Tx >> agi_calleridname: unknown
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callingpres: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callingani2: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callington: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callingtns: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_dnid: 447842444123
<SIP/52.7.2.21-00000000>AGI Tx >> agi_rdnis: unknown
<SIP/52.7.2.21-00000000>AGI Tx >> agi_context: a2billing_did
<SIP/52.7.2.21-00000000>AGI Tx >> agi_extension: 447842444123
<SIP/52.7.2.21-00000000>AGI Tx >> agi_priority: 1
<SIP/52.7.2.21-00000000>AGI Tx >> agi_enhanced: 0.0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_accountcode:
<SIP/52.7.2.21-00000000>AGI Tx >> agi_threadid: 140055975163648
<SIP/52.7.2.21-00000000>AGI Tx >> agi_arg_1: 1
<SIP/52.7.2.21-00000000>AGI Tx >> agi_arg_2: did
<SIP/52.7.2.21-00000000>AGI Tx >>
-- <SIP/52.7.2.21-00000000>AGI Script a2billing.php completed, returning 0
-- Executing [447842444123@a2billing_did:2] Hangup("SIP/52.7.2.21-00000000", "") in new stack
== Spawn extension (a2billing_did, 447842444123, 2) exited non-zero on 'SIP/52.7.2.21-00000000'
Asterisk Version : 1.11
PHP Version : 5.3.29
A2B DataBase Version : 2.1.0