We are also experiencing the same problem.
Setting the FreePBX outbound route to use the SIP trunk directly works but directing it via A2Billing and having it subsequently use the SIP trunk breaks DTMF.
asterisk-1.6.2.13-96.el5 (ATRPMS) FreePBX 2.7.0.6 A2Billing 1.8.5 (1.7.1 was behaving the same way)
/etc/asterisk/extensions_custom.conf [a2billing] exten => _X.,1,Answer(1) exten => _X.,n,DeadAGI(a2billing.php,1) exten => _X.,n,Hangup exten => h,1,Hangup
[custom-a2billing] exten => _X.,1,Answer(1) exten => _X.,n,DeadAGI(a2billing.php,1) exten => _X.,n,Hangup exten => h,1,Hangup
[a2billing-did] exten => _X.,1,DeadAGI(a2billing.php,1,did) exten => _X.,n,Hangup exten => h,1,Hangup
[custom-a2billing-did] exten => _X.,1,DeadAGI(a2billing.php,1,did) exten => _X.,n,Hangup exten => h,1,Hangup
[macro-dialout-trunk-predial-hook] exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2) exten => s,n,MacroExit
[custom-freepbx-a2billing] exten => _X.,1,DeadAGI(a2billing.php,${OUT_${DIAL_TRUNK}:8}) exten => _X.,n,Hangup exten => h,1,Hangup
FreePBX Custom Trunk: A2B/1
Asterisk logging data: == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 == Using SIP VRTP TOS bits 136 == Using SIP VRTP CoS mark 6 -- Executing [0117211900@from-internal:1] Macro("SIP/8717847387-00000002", "user-callerid,SKIPTTL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/8717847387-00000002", "AMPUSER=8717847387") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/8717847387-00000002", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/8717847387-00000002", "1?Set(REALCALLERIDNUM=8717847387)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/8717847387-00000002", "AMPUSER=8717847387") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/8717847387-00000002", "AMPUSERCIDNAME=Syrex Intranets") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/8717847387-00000002", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/8717847387-00000002", "AMPUSERCID=8717847387") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/8717847387-00000002", "CALLERID(all)="Syrex Intranets" <8717847387>") in new stack -- Executing [s@macro-user-callerid:9] ExecIf("SIP/8717847387-00000002", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:10] GotoIf("SIP/8717847387-00000002", "1?continue") in new stack -- Goto (macro-user-callerid,s,19) -- Executing [s@macro-user-callerid:19] Set("SIP/8717847387-00000002", "CALLERID(number)=8717847387") in new stack -- Executing [s@macro-user-callerid:20] Set("SIP/8717847387-00000002", "CALLERID(name)=Syrex Intranets") in new stack -- Executing [s@macro-user-callerid:21] NoOp("SIP/8717847387-00000002", "Using CallerID "Syrex Intranets" <8717847387>") in new stack -- Executing [0117211900@from-internal:2] Set("SIP/8717847387-00000002", "_NODEST=") in new stack -- Executing [0117211900@from-internal:3] Macro("SIP/8717847387-00000002", "record-enable,8717847387,OUT,") in new stack -- Executing [s@macro-record-enable:1] GotoIf("SIP/8717847387-00000002", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] ExecIf("SIP/8717847387-00000002", "0?MacroExit()") in new stack -- Executing [s@macro-record-enable:5] GotoIf("SIP/8717847387-00000002", "0?Group:OUT") in new stack -- Goto (macro-record-enable,s,15) -- Executing [s@macro-record-enable:15] GotoIf("SIP/8717847387-00000002", "0?IN") in new stack -- Executing [s@macro-record-enable:16] ExecIf("SIP/8717847387-00000002", "1?MacroExit()") in new stack -- Executing [0117211900@from-internal:4] Macro("SIP/8717847387-00000002", "dialout-trunk,3,117211900,,") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/8717847387-00000002", "DIAL_TRUNK=3") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/8717847387-00000002", "0?sub-pincheck,s,1") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/8717847387-00000002", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/8717847387-00000002", "DIAL_NUMBER=117211900") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/8717847387-00000002", "DIAL_TRUNK_OPTIONS=tr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/8717847387-00000002", "OUTBOUND_GROUP=OUT_3") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/8717847387-00000002", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/8717847387-00000002", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/8717847387-00000002", "DIAL_TRUNK_OPTIONS=") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/8717847387-00000002", "outbound-callerid,3") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/8717847387-00000002", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/8717847387-00000002", "0?Set(REALCALLERIDNUM=8717847387)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/8717847387-00000002", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("SIP/8717847387-00000002", "USEROUTCID="Syrex Intranets" <0861179739>") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/8717847387-00000002", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/8717847387-00000002", "TRUNKOUTCID=") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/8717847387-00000002", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,12) -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/8717847387-00000002", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/8717847387-00000002", "1?Set(CALLERID(all)="Syrex Intranets" <0861179739>)") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/8717847387-00000002", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/8717847387-00000002", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/8717847387-00000002", "1?AGI(fixlocalprefix)") in new stack -- Launched AGI Script /usr/share/asterisk/agi-bin/fixlocalprefix == fixlocalprefix: Dialpattern 27+XXXXXXXXX matched. 117211900 -> 27117211900 -- <SIP/8717847387-00000002>AGI Script fixlocalprefix completed, returning 0 -- Executing [s@macro-dialout-trunk:13] Set("SIP/8717847387-00000002", "OUTNUM=27117211900") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/8717847387-00000002", "custom=AMP") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/8717847387-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack -- Executing [s@macro-dialout-trunk:16] Macro("SIP/8717847387-00000002", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf("SIP/8717847387-00000002", "1?custom-freepbx-a2billing,27117211900,1:2") in new stack -- Goto (custom-freepbx-a2billing,27117211900,1) == Channel 'SIP/8717847387-00000002' jumping out of macro 'dialout-trunk-predial-hook' == Channel 'SIP/8717847387-00000002' jumping out of macro 'dialout-trunk' -- Executing [27117211900@custom-freepbx-a2billing:1] DeadAGI("SIP/8717847387-00000002", "a2billing.php,1") in new stack [Feb 18 00:33:14] WARNING[15807]: res_agi.c:3312 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases! -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php -- AGI Script Executing Application: (DIAL) Options: (SIP/ECN_JHB_CLI/0117211900,60,HRrL(2147483647:61000:30000)) -- Limit Data for this call: == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 == Using SIP VRTP TOS bits 136 == Using SIP VRTP CoS mark 6 -- Called ECN_JHB_CLI/0117211900 -- SIP/ECN_JHB_CLI-00000003 is making progress passing it to SIP/8717847387-00000002 [Feb 18 00:33:15] WARNING[15807]: dsp.c:1360 ast_dsp_process: Inband DTMF is not supported on codec g729. Use RFC2833 -- SIP/ECN_JHB_CLI-00000003 answered SIP/8717847387-00000002 -- Executing [h@custom-freepbx-a2billing:1] Hangup("SIP/8717847387-00000002", "") in new stack -- <SIP/8717847387-00000002>AGI Script a2billing.php completed, returning -1
|