Code:
-- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/805-00000005", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,26)
-- Executing [s@macro-dialout-trunk:26] Set("SIP/805-00000005", "the_num=06XXXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:27] Dial("SIP/805-00000005", "local/06XXXXXXXX@distribution-trunks,300,") in new stack
-- Couldn't call 0698595496@distribution-trunks
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:28] NoOp("SIP/805-00000005", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack
-- Executing [s@macro-dialout-trunk:29] Goto("SIP/805-00000005", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/805-00000005", "RC=0") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/805-00000005", "0,1") in new stack
-- Goto (macro-dialout-trunk,0,1)
-- Executing [006XXXXXXXX@from-internal:5] Macro("SIP/805-00000005", "dialout-trunk,1,06XXXXXXXX,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/805-00000005", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/805-00000005", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/805-00000005", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/805-00000005", "DIAL_NUMBER=06XXXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/805-00000005", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/805-00000005", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/805-00000005", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/805-00000005", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/805-00000005", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/805-00000005", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/805-00000005", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/805-00000005", "0?Set(REALCALLERIDNUM=805)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/805-00000005", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/805-00000005", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/805-00000005", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/805-00000005", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/805-00000005", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/805-00000005", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/805-00000005", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/805-00000005", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/805-00000005", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/805-00000005", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- <SIP/805-00000005>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/805-00000005", "OUTNUM=06XXXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/805-00000005", "custom=DAHDI/g0") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/805-00000005", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/805-00000005", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/805-00000005", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/805-00000005", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/805-00000005", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/805-00000005", "DAHDI/g0/0698595496,300,") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] NoOp("SIP/805-00000005", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 66") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/805-00000005", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/805-00000005", "RC=66") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/805-00000005", "66,1") in new stack
-- Goto (macro-dialout-trunk,66,1)
-- Executing [66@macro-dialout-trunk:1] Goto("SIP/805-00000005", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/805-00000005", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/805-00000005", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 66 - failing through to other trunks") in new stack
-- Executing [006XXXXXXXX@from-internal:6] Macro("SIP/805-00000005", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/805-00000005", "") in new stack
-- Executing [s@macro-outisbusy:2] Playback("SIP/805-00000005", "all-circuits-busy-now,noanswer") in new stack
-- <SIP/805-00000005> Playing 'all-circuits-busy-now.gsm' (language 'en')
-- Executing [s@macro-outisbusy:3] Playback("SIP/805-00000005", "pls-try-call-later,noanswer") in new stack
-- <SIP/805-00000005> Playing 'pls-try-call-later.gsm' (language 'en')
-- Executing [s@macro-outisbusy:4] Macro("SIP/805-00000005", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/805-00000005", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/805-00000005", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/805-00000005", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/805-00000005", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/805-00000005' in macro 'hangupcall'
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/805-00000005' in macro 'outisbusy'
== Spawn extension (from-internal, 006XXXXXXXX, 6) exited non-zero on 'SIP/805-00000005'
-- Executing [h@from-internal:1] Macro("SIP/805-00000005", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/805-00000005", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/805-00000005", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/805-00000005", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/805-00000005", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/805-00000005' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/805-00000005'