yo tengo el seguiente codigo en el extensions_custom.conf pero no me enlaza las llamadas
[macro-dialout-trunk-predial-hook]
;********************** MODIFICACION PARA ROUND ROBIN ********************************
exten => s,1,Noop(Entrando a predial - hook))
exten => s,n,GotoIf($["${OUT${DIAL_TRUNK}:4:4}" ="A2B/"]?custom-freepbx-a2billing,${OUTNUM},1)
exten => s,n,Set(sirobin=${CUT(OUT${DIAL_TRUNK},/,1):0:5})
exten => s,n,Noop(${sirobin})
exten => s,n,GotoIf($[${sirobin}=AMP:R]?robin:salir)
exten => s,n(robin),Set(custom="")
exten => s,n,Noop(Dialling out via round-robin SIPtrunk)
exten => s,n,Set(robin-contador${DIAL_TRUNK}=$[${DB(robin/conta/${DIAL_TRUNK})}+1])
exten => s,n,GotoIf($[${OUTMAXCHANS${DIAL_TRUNK}}>= ${robin-contador${DIAL_TRUNK}}]?skip)
exten => s,n,Set(robin-contador${DIAL_TRUNK}=1)
exten => s,n(skip),Noop(SIP dialling on trunk: ${robin-contador${DIAL_TRUNK}})
exten => s,n,Set(OUT${DIAL_TRUNK}=SIP/${CUT(OUT${DIAL_TRUNK},/,1):5}${robin-contador${DIAL_TRUNK}})
exten => s,n,Noop(${OUT${DIAL_TRUNK}})
exten => s,n,Set(DB(robin/conta/${DIAL_TRUNK})=${robin-contador${DIAL_TRUNK}})
exten => s,n(salir),MacroExit()
****** ESTE ES EL RESULTADO****
-- Executing [0452231032598@from-internal:1] Macro("SIP/400-0000005e", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/400-0000005e", "AMPUSER=400") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/400-0000005e", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/400-0000005e", "1?Set(REALCALLERIDNUM=400)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/400-0000005e", "AMPUSER=400") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/400-0000005e", "AMPUSERCIDNAME=Ing Alberto") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/400-0000005e", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/400-0000005e", "AMPUSERCID=400") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/400-0000005e", "CALLERID(all)="Ing Alberto" <400>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/400-0000005e", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/400-0000005e", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/400-0000005e", "CALLERID(number)=400") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/400-0000005e", "CALLERID(name)=Ing Alberto") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/400-0000005e", "Using CallerID "Ing Alberto" <400>") in new stack
-- Executing [0452231032598@from-internal:2] NoOp("SIP/400-0000005e", "Calling Out Route: RTelcel") in new stack
-- Executing [0452231032598@from-internal:3] Set("SIP/400-0000005e", "MOHCLASS=default") in new stack
-- Executing [0452231032598@from-internal:4] Set("SIP/400-0000005e", "_NODEST=") in new stack
-- Executing [0452231032598@from-internal:5] Macro("SIP/400-0000005e", "record-enable,400,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/400-0000005e", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/400-0000005e", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/400-0000005e", "0?Group😮UT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/400-0000005e", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/400-0000005e", "1?MacroExit()") in new stack
-- Executing [0452231032598@from-internal:6] Macro("SIP/400-0000005e", "dialout-trunk,12,0452231032598,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/400-0000005e", "DIAL_TRUNK=12") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/400-0000005e", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/400-0000005e", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/400-0000005e", "DIAL_NUMBER=0452231032598") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/400-0000005e", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/400-0000005e", "OUTBOUND_GROUP=OUT_12") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/400-0000005e", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/400-0000005e", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/400-0000005e", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/400-0000005e", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/400-0000005e", "outbound-callerid,12") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/400-0000005e", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/400-0000005e", "0?Set(REALCALLERIDNUM=400)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/400-0000005e", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/400-0000005e", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/400-0000005e", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/400-0000005e", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/400-0000005e", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/400-0000005e", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/400-0000005e", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/400-0000005e", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/400-0000005e", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/400-0000005e", "0?sub-flp-12,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/400-0000005e", "OUTNUM=0452231032598") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/400-0000005e", "custom=AMP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/400-0000005e", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusicdefault))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/400-0000005e", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] NoOp("SIP/400-0000005e", "Entrando a predial - hook)") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:2] GotoIf("SIP/400-0000005e", "0?custom-freepbx-a2billing,0452231032598,1") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:3] Set("SIP/400-0000005e", "sirobin=AMP:R") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:4] NoOp("SIP/400-0000005e", "AMP:R") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:5] GotoIf("SIP/400-0000005e", "1?robin:salir") in new stack
-- Goto (macro-dialout-trunk-predial-hook,s,6)
-- Executing [s@macro-dialout-trunk-predial-hook:6] Set("SIP/400-0000005e", "custom=""") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:7] NoOp("SIP/400-0000005e", "Dialling out via round-robin SIPtrunk") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:8] Set("SIP/400-0000005e", "robin-contador_12=3") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:9] GotoIf("SIP/400-0000005e", "1?skip") in new stack
-- Goto (macro-dialout-trunk-predial-hook,s,11)
-- Executing [s@macro-dialout-trunk-predial-hook:11] NoOp("SIP/400-0000005e", "SIP dialling on trunk: 3") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:12] Set("SIP/400-0000005e", "OUT_12=SIP/Telcel3") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:13] NoOp("SIP/400-0000005e", "SIP/Telcel3") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:14] Set("SIP/400-0000005e", "DB(robin/conta/12)=3") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:15] MacroExit("SIP/400-0000005e", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/400-0000005e", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/400-0000005e", """?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,22)
-- Executing [s@macro-dialout-trunk:22] Set("SIP/400-0000005e", "pre_num=SIP/Telcel3") in new stack
-- Executing [s@macro-dialout-trunk:23] Set("SIP/400-0000005e", "the_num=") in new stack
-- Executing [s@macro-dialout-trunk:24] Set("SIP/400-0000005e", "post_num=") in new stack
-- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/400-0000005e", "0?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,27)
-- Executing [s@macro-dialout-trunk:27] Dial("SIP/400-0000005e", "Telcel3,300,") in new stack