Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 2:38 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: use_dnid not works!!
PostPosted: Tue Jul 08, 2014 4:39 pm 
Offline

Joined: Tue Jul 08, 2014 4:29 pm
Posts: 1
Hi guys!

I've a problem with A2Billing and FreePBX... if I make a call throung A2Billing Trunk with agiconf answer_call set to YES, inserting destination number all works ok this is the output:
Quote:
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [44123456789@from-internal:1] Macro("SIP/6001-0000002e", "user-callerid,LIMIT,EXTERNAL,") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/6001-0000002e", "TOUCH_MONITOR=1404837257.50") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:2] Set("SIP/6001-0000002e", "AMPUSER=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:3] GotoIf("SIP/6001-0000002e", "0?report") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:4] ExecIf("SIP/6001-0000002e", "1?Set(REALCALLERIDNUM=6001)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/6001-0000002e", "AMPUSER=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/6001-0000002e", "0?limit") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/6001-0000002e", "AMPUSERCIDNAME=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:8] GotoIf("SIP/6001-0000002e", "0?report") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:9] Set("SIP/6001-0000002e", "AMPUSERCID=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:10] Set("SIP/6001-0000002e", "__DIAL_OPTIONS=tr") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:11] Set("SIP/6001-0000002e", "CALLERID(all)="6001" <6001>") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:12] GotoIf("SIP/6001-0000002e", "0?limit") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:13] ExecIf("SIP/6001-0000002e", "1?Set(GROUP(concurrency_limit)=6001)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:14] ExecIf("SIP/6001-0000002e", "0?Set(CHANNEL(language)=)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:15] GotoIf("SIP/6001-0000002e", "1?continue") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (macro-user-callerid,s,28)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:28] Set("SIP/6001-0000002e", "CALLERID(number)=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:29] Set("SIP/6001-0000002e", "CALLERID(name)=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:30] Set("SIP/6001-0000002e", "CDR(cnum)=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:31] Set("SIP/6001-0000002e", "CDR(cnam)=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-user-callerid:32] Set("SIP/6001-0000002e", "CHANNEL(language)=en") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [44123456789@from-internal:2] Set("SIP/6001-0000002e", "MOHCLASS=default") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [44123456789@from-internal:3] Set("SIP/6001-0000002e", "_NODEST=") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [44123456789@from-internal:4] Gosub("SIP/6001-0000002e", "sub-record-check,s,1(out,44123456789,)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:1] Set("SIP/6001-0000002e", "REC_POLICY_MODE_SAVE=") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:2] GotoIf("SIP/6001-0000002e", "1?check") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (sub-record-check,s,7)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:7] Set("SIP/6001-0000002e", "__MON_FMT=wav") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:8] GotoIf("SIP/6001-0000002e", "1?next") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (sub-record-check,s,11)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:11] ExecIf("SIP/6001-0000002e", "0?Return()") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:12] ExecIf("SIP/6001-0000002e", "0?Set(__REC_POLICY_MODE=)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:13] GotoIf("SIP/6001-0000002e", "0?out,1") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:14] Set("SIP/6001-0000002e", "__REC_STATUS=INITIALIZED") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:15] Set("SIP/6001-0000002e", "NOW=1404837257") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:16] Set("SIP/6001-0000002e", "__DAY=08") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:17] Set("SIP/6001-0000002e", "__MONTH=07") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:18] Set("SIP/6001-0000002e", "__YEAR=2014") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:19] Set("SIP/6001-0000002e", "__TIMESTR=20140708-183417") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:20] Set("SIP/6001-0000002e", "__FROMEXTEN=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:21] Set("SIP/6001-0000002e", "__CALLFILENAME=out-44123456789-6001-20140708-183417-1404837257.50") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@sub-record-check:22] Goto("SIP/6001-0000002e", "out,1") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (sub-record-check,out,1)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [out@sub-record-check:1] ExecIf("SIP/6001-0000002e", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [out@sub-record-check:2] GosubIf("SIP/6001-0000002e", "0?record,1(exten,44123456789,6001)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [out@sub-record-check:3] Return("SIP/6001-0000002e", "") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [44123456789@from-internal:5] Macro("SIP/6001-0000002e", "dialout-trunk,4,44123456789,,off") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/6001-0000002e", "DIAL_TRUNK=4") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/6001-0000002e", "0?sub-pincheck,s,1()") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/6001-0000002e", "0?disabletrunk,1") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/6001-0000002e", "DIAL_NUMBER=44123456789") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/6001-0000002e", "DIAL_TRUNK_OPTIONS=tr") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/6001-0000002e", "OUTBOUND_GROUP=OUT_4") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/6001-0000002e", "1?nomax") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (macro-dialout-trunk,s,9)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/6001-0000002e", "0?skipoutcid") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/6001-0000002e", "DIAL_TRUNK_OPTIONS=") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/6001-0000002e", "outbound-callerid,4") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/6001-0000002e", "0?Set(CALLERPRES()=)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/6001-0000002e", "0?Set(REALCALLERIDNUM=6001)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/6001-0000002e", "1?normcid") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/6001-0000002e", "USEROUTCID=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/6001-0000002e", "EMERGENCYCID=") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/6001-0000002e", "TRUNKOUTCID=") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/6001-0000002e", "1?trunkcid") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (macro-outbound-callerid,s,14)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/6001-0000002e", "0?Set(CALLERID(all)=)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/6001-0000002e", "1?Set(CALLERID(all)=6001)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/6001-0000002e", "0?Set(CALLERID(all)=)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/6001-0000002e", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:18] Set("SIP/6001-0000002e", "CDR(outbound_cnum)=6001") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-outbound-callerid:19] Set("SIP/6001-0000002e", "CDR(outbound_cnam)=") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/6001-0000002e", "0?sub-flp-4,s,1()") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/6001-0000002e", "OUTNUM=44123456789") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/6001-0000002e", "custom=AMP") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/6001-0000002e", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/6001-0000002e", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk:17] Macro("SIP/6001-0000002e", "dialout-trunk-predial-hook,") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf("SIP/6001-0000002e", "1?custom-freepbx-a2billing,44123456789,1:2") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Goto (custom-freepbx-a2billing,44123456789,1)
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] app_macro.c: == Channel 'SIP/6001-0000002e' jumping out of macro 'dialout-trunk-predial-hook'
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] app_macro.c: == Channel 'SIP/6001-0000002e' jumping out of macro 'dialout-trunk'
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] pbx.c: -- Executing [44123456789@custom-freepbx-a2billing:1] AGI("SIP/6001-0000002e", "a2billing.php,1") in new stack
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[2014-07-08 18:34:17] VERBOSE[4996][C-00000024] file.c: -- <SIP/6001-0000002e> Playing 'prepaid-enter-dest.gsm' (language 'en')
[2014-07-08 18:34:23] VERBOSE[4996][C-00000024] res_agi.c: -- AGI Script Executing Application: (DIAL) Options: (SIP/TWT-out/44123456789,60,HRrL(39660000:61000:30000))
[2014-07-08 18:34:23] VERBOSE[4996][C-00000024] netsock2.c: == Using SIP RTP TOS bits 184
[2014-07-08 18:34:23] VERBOSE[4996][C-00000024] netsock2.c: == Using SIP RTP CoS mark 5
[2014-07-08 18:34:23] VERBOSE[4996][C-00000024] app_dial.c: -- Called SIP/TWT-out/44123456789
[2014-07-08 18:34:25] VERBOSE[4996][C-00000024] app_dial.c: -- SIP/TWT-out-0000002f answered SIP/6001-0000002e
[2014-07-08 18:34:29] VERBOSE[4996][C-00000024] res_agi.c: -- <SIP/6001-0000002e>AGI Script a2billing.php completed, returning 4
[2014-07-08 18:34:29] VERBOSE[4996][C-00000024] pbx.c: == Spawn extension (custom-freepbx-a2billing, 44123456789, 1) exited non-zero on 'SIP/6001-0000002e'



If I disable answer_call, and variable use_dnid is set to YES io order to make call directly... this appens:
Quote:
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [44123456789@from-internal:1] Macro("SIP/6001-00000030", "user-callerid,LIMIT,EXTERNAL,") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/6001-00000030", "TOUCH_MONITOR=1404837457.52") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:2] Set("SIP/6001-00000030", "AMPUSER=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:3] GotoIf("SIP/6001-00000030", "0?report") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:4] ExecIf("SIP/6001-00000030", "1?Set(REALCALLERIDNUM=6001)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/6001-00000030", "AMPUSER=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/6001-00000030", "0?limit") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/6001-00000030", "AMPUSERCIDNAME=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:8] GotoIf("SIP/6001-00000030", "0?report") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:9] Set("SIP/6001-00000030", "AMPUSERCID=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:10] Set("SIP/6001-00000030", "__DIAL_OPTIONS=tr") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:11] Set("SIP/6001-00000030", "CALLERID(all)="6001" <6001>") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:12] GotoIf("SIP/6001-00000030", "0?limit") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:13] ExecIf("SIP/6001-00000030", "1?Set(GROUP(concurrency_limit)=6001)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:14] ExecIf("SIP/6001-00000030", "0?Set(CHANNEL(language)=)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:15] GotoIf("SIP/6001-00000030", "1?continue") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (macro-user-callerid,s,28)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:28] Set("SIP/6001-00000030", "CALLERID(number)=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:29] Set("SIP/6001-00000030", "CALLERID(name)=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:30] Set("SIP/6001-00000030", "CDR(cnum)=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:31] Set("SIP/6001-00000030", "CDR(cnam)=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-user-callerid:32] Set("SIP/6001-00000030", "CHANNEL(language)=en") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [44123456789@from-internal:2] Set("SIP/6001-00000030", "MOHCLASS=default") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [44123456789@from-internal:3] Set("SIP/6001-00000030", "_NODEST=") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [44123456789@from-internal:4] Gosub("SIP/6001-00000030", "sub-record-check,s,1(out,44123456789,)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:1] Set("SIP/6001-00000030", "REC_POLICY_MODE_SAVE=") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:2] GotoIf("SIP/6001-00000030", "1?check") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (sub-record-check,s,7)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:7] Set("SIP/6001-00000030", "__MON_FMT=wav") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:8] GotoIf("SIP/6001-00000030", "1?next") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (sub-record-check,s,11)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:11] ExecIf("SIP/6001-00000030", "0?Return()") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:12] ExecIf("SIP/6001-00000030", "0?Set(__REC_POLICY_MODE=)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:13] GotoIf("SIP/6001-00000030", "0?out,1") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:14] Set("SIP/6001-00000030", "__REC_STATUS=INITIALIZED") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:15] Set("SIP/6001-00000030", "NOW=1404837457") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:16] Set("SIP/6001-00000030", "__DAY=08") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:17] Set("SIP/6001-00000030", "__MONTH=07") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:18] Set("SIP/6001-00000030", "__YEAR=2014") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:19] Set("SIP/6001-00000030", "__TIMESTR=20140708-183737") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:20] Set("SIP/6001-00000030", "__FROMEXTEN=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:21] Set("SIP/6001-00000030", "__CALLFILENAME=out-44123456789-6001-20140708-183737-1404837457.52") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@sub-record-check:22] Goto("SIP/6001-00000030", "out,1") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (sub-record-check,out,1)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [out@sub-record-check:1] ExecIf("SIP/6001-00000030", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [out@sub-record-check:2] GosubIf("SIP/6001-00000030", "0?record,1(exten,44123456789,6001)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [out@sub-record-check:3] Return("SIP/6001-00000030", "") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [44123456789@from-internal:5] Macro("SIP/6001-00000030", "dialout-trunk,4,44123456789,,off") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/6001-00000030", "DIAL_TRUNK=4") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/6001-00000030", "0?sub-pincheck,s,1()") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/6001-00000030", "0?disabletrunk,1") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/6001-00000030", "DIAL_NUMBER=44123456789") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/6001-00000030", "DIAL_TRUNK_OPTIONS=tr") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/6001-00000030", "OUTBOUND_GROUP=OUT_4") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/6001-00000030", "1?nomax") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (macro-dialout-trunk,s,9)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/6001-00000030", "0?skipoutcid") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/6001-00000030", "DIAL_TRUNK_OPTIONS=") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/6001-00000030", "outbound-callerid,4") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/6001-00000030", "0?Set(CALLERPRES()=)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/6001-00000030", "0?Set(REALCALLERIDNUM=6001)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/6001-00000030", "1?normcid") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/6001-00000030", "USEROUTCID=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/6001-00000030", "EMERGENCYCID=") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/6001-00000030", "TRUNKOUTCID=") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/6001-00000030", "1?trunkcid") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (macro-outbound-callerid,s,14)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/6001-00000030", "0?Set(CALLERID(all)=)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/6001-00000030", "1?Set(CALLERID(all)=6001)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/6001-00000030", "0?Set(CALLERID(all)=)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/6001-00000030", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:18] Set("SIP/6001-00000030", "CDR(outbound_cnum)=6001") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-outbound-callerid:19] Set("SIP/6001-00000030", "CDR(outbound_cnam)=") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/6001-00000030", "0?sub-flp-4,s,1()") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/6001-00000030", "OUTNUM=44123456789") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/6001-00000030", "custom=AMP") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/6001-00000030", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/6001-00000030", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk:17] Macro("SIP/6001-00000030", "dialout-trunk-predial-hook,") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf("SIP/6001-00000030", "1?custom-freepbx-a2billing,44123456789,1:2") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Goto (custom-freepbx-a2billing,44123456789,1)
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] app_macro.c: == Channel 'SIP/6001-00000030' jumping out of macro 'dialout-trunk-predial-hook'
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] app_macro.c: == Channel 'SIP/6001-00000030' jumping out of macro 'dialout-trunk'
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] pbx.c: -- Executing [44123456789@custom-freepbx-a2billing:1] AGI("SIP/6001-00000030", "a2billing.php,1") in new stack
[2014-07-08 18:37:37] VERBOSE[5026][C-00000025] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[2014-07-08 18:37:38] VERBOSE[5026][C-00000025] file.c: -- <SIP/6001-00000030> Playing 'prepaid-enter-dest.gsm' (language 'en')
[2014-07-08 18:37:48] VERBOSE[5026][C-00000025] res_agi.c: -- <SIP/6001-00000030>AGI Script a2billing.php completed, returning 4
[2014-07-08 18:37:48] VERBOSE[5026][C-00000025] pbx.c: == Spawn extension (custom-freepbx-a2billing, 44123456789, 1) exited non-zero on 'SIP/6001-00000030'


It seems that DNID not pass to A2Billing it's possible?


Top
 Profile  
 
 Post subject: Re: use_dnid not works!!
PostPosted: Wed Oct 01, 2014 1:27 pm 
Offline

Joined: Wed Oct 01, 2014 1:16 pm
Posts: 2
I have use_dnid se to yes. Have you set the accountcodes on FreePBX's extensions?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group