hiiii
i have installed the a2billling and i have made changes in the customer entity card so that i can assign my own account number which also eflect in the sip.conf. i have created two customers 1001 and 1004 who is having the $ 3 balance both can call each other but billing is not . here is my etensions.conf
extensions.conf
[globals]
[default] exten => s,1,Verbose(1|Unrouted call handler) exten => s,n,Answer() exten => s,n,Wait(1) exten => s,n,Playback(tt-weasels) exten => s,n,Hangup()
[a2billing] exten => _X.,1,Answer exten => _X.,2,Wait(1) exten => _X.,3,AGI(a2billing.php,${OUT_${DIAL_TRUNK}:8) exten => _X.,4,Dial(SIP/${EXTEN},30) ;exten => _X.,4,Goto(a2billing,SIP/${EXTEN},30) exten => _X.,5,Wait(1) exten => _X.,6,Hangup
[a2billing-callback] exten => _X.,1,AGI(a2billing.php,1,callback) exten => _X.,2,Hangup
[a2billing-cid-callback] exten => _X.,1,Wait(1) exten => _X.,2,AGI(a2billing.php,1,cid-callback) exten => _X.,3,Hangup
[a2billing-all-callback] exten => _X.,1,AGI(a2billing.php,1,all-callback,1) ;last parameter is the callback area code exten => _X.,2,Hangup
[a2billing-predictivedialer] exten => _X.,1,AGI(a2billing.php,1,predictivedialer) exten => _X.,2,Hangup
[a2billing-did] exten => _X.,1,AGI(a2billing.php,1,did) exten => _X.,2,Hangup
[a2billing-voucher] exten => _X.,1,AGI(a2billing.php,1,voucher) ;exten => _X.,1,AGI(a2billing.php,1,voucher,1) ; will add 44 in front of the callerID for the CID authentication exten => _X.,2,Hangup
[a2billing-sip] exten => _X.,1,AGI(a2billing.php,2) exten => _X.,2,Hangup
[general] autofallthrough=yes
and here is sip.conf file [general]
[1004] accountcode=1004 regexten=1004 amaflags=billing canreinvite=YES context=a2billing dtmfmode=RFC2833 host=dynamic nat=yes qualify=no secret=6760612430 type=friend username=1004 disallow=ALL allow=ulaw allow=alaw allow=gsm allow=g729 regseconds=0 cancallforward=yes rtpkeepalive=0
[1002] accountcode=1002 regexten=1002 amaflags=billing canreinvite= NO context=a2billing dtmfmode=RFC2833 host=dynamic nat=yes qualify=no secret=5791339103 type=friend username=1002 disallow=ALL allow=ulaw allow=alaw allow=gsm allow=g729 regseconds=0 cancallforward=yes rtpkeepalive=0
[2006] accountcode=2006 regexten=2006 amaflags=billing canreinvite=NO context=a2billing dtmfmode=RFC2833 host=dynamic nat=yes qualify=no secret=8641459180 type=friend username=2006 disallow=ALL allow=ulaw allow=alaw allow=gsm allow=g729 regseconds=0 cancallforward=yes rtpkeepalive=0
[2001] accountcode=2001 regexten=2001 amaflags=billing canreinvite=YES context=a2billing dtmfmode=RFC2833 host=dynamic nat=yes qualify=no secret=2372439901 type=friend username=2001 disallow=ALL allow=ulaw allow=alaw allow=gsm allow=g729 regseconds=0 cancallforward=yes rtpkeepalive
[1001] accountcode=1001 regexten=1001 amaflags=billing canreinvite=NP context=a2billing dtmfmode=RFC2833 host=dynamic nat=yes qualify=no secret=6409879868 type=friend username=1001 disallow=ALL allow=ulaw allow=alaw allow=gsm allow=g729 regseconds=0 cancallforward=yes rtpkeepalive=0
and here is my log in asterisk
== Using SIP RTP CoS mark 5 -- Executing [1001@a2billing:1] Answer("SIP/1004-00000007", "") in new stack -- Executing [1001@a2billing:2] Wait("SIP/1004-00000007", "1") in new stack [Jun 6 20:43:25] WARNING[2495]: pbx.c:3473 pbx_substitute_variables_helper_full: Error in extension logic (missing '}') -- Executing [1001@a2billing:3] AGI("SIP/1004-00000007", "a2billing.php,") in new stack -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php -- <SIP/1004-00000007>AGI Script a2billing.php completed, returning 0 -- Executing [1001@a2billing:4] Dial("SIP/1004-00000007", "SIP/1001,30") in new stack == Using SIP RTP CoS mark 5 -- Called 1001 -- SIP/1001-00000008 is ringing -- SIP/1001-00000008 is making progress passing it to SIP/1004-00000007 -- SIP/1001-00000008 answered SIP/1004-00000007 -- Packet2Packet bridging SIP/1004-00000007 and SIP/1001-00000008 == Spawn extension (a2billing, 1001, 4) exited non-zero on 'SIP/1004-00000007
|