-- Executing [s@macro-user-callerid:1] Set("SIP/704-b7805be8", "AMPUSER=704") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/704-b7805be8", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/704-b7805be8", "1|Set|REALCALLERIDNUM=704") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/704-b7805be8", "AMPUSER=704") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/704-b7805be8", "AMPUSERCIDNAME=Yahoo") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/704-b7805be8", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/704-b7805be8", "AMPUSERCID=704") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/704-b7805be8", "CALLERID(all)="Yahoo" <704>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/704-b7805be8", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/704-b7805be8", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/704-b7805be8", "Using CallerID "Yahoo" <704>") in new stack
-- Executing [YYYYYYY@from-internal:2] Set("SIP/704-b7805be8", "_NODEST=") in new stack
-- Executing [YYYYYYY@from-internal:3] Macro("SIP/704-b7805be8", "record-enable|704|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/704-b7805be8", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/704-b7805be8", "recordingcheck|20100507-100325|1273251804.2") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100507-100325|1273251804.2: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/704-b7805be8", "") in new stack
-- Executing [YYYYYYY@from-internal:4] Macro("SIP/704-b7805be8", "dialout-trunk|1|YYYYYYY||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/704-b7805be8", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/704-b7805be8", "0?sub-pincheck|s|1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/704-b7805be8", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/704-b7805be8", "DIAL_NUMBER=YYYYYYY") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/704-b7805be8", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/704-b7805be8", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/704-b7805be8", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/704-b7805be8", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/704-b7805be8", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/704-b7805be8", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/704-b7805be8", "outbound-callerid|1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/704-b7805be8", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/704-b7805be8", "0|Set|REALCALLERIDNUM=704") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/704-b7805be8", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/704-b7805be8", "USEROUTCID="Work Phone" <707ZZZZZZZ>") in new stack
ExecIf("SIP/704-b7805be8", "1|Set|CALLERID(all)=Work Phone <707ZZZZZZZ>") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/704-b7805be8", "0|SetCallerPres|prohib_passed_screen") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/704-b7805be8", "1|AGI|fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 1NXXNXXXXXX
> fixlocalprefix: Using pattern NXXNXXXXXX
> fixlocalprefix: Using pattern 1707+NXXXXXX
== fixlocalprefix: Dialpattern 1707+NXXXXXX matched. YYYYYYY -> 1707YYYYYYY
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/704-b7805be8", "OUTNUM=1707YYYYYYY") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/704-b7805be8", "custom=SIP/vitel-outbound") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/704-b7805be8", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/704-b7805be8", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/704-b7805be8", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/704-b7805be8", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/704-b7805be8", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/704-b7805be8", "SIP/vitel-outbound/1707YYYYYYY|300|") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/704-b7805be8", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/704-b7805be8", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/704-b7805be8", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 3) - failing through to other trunks") in new stack
-- Executing [YYYYYYY@from-internal:5] Macro("SIP/704-b7805be8", "dialout-trunk|5|YYYYYYY||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/704-b7805be8", "DIAL_TRUNK=5") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/704-b7805be8", "0?sub-pincheck|s|1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/704-b7805be8", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/704-b7805be8", "DIAL_NUMBER=YYYYYYY") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/704-b7805be8", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/704-b7805be8", "OUTBOUND_GROUP=OUT_5") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/704-b7805be8", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/704-b7805be8", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/704-b7805be8", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/704-b7805be8", "outbound-callerid|5") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/704-b7805be8", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/704-b7805be8", "0|Set|REALCALLERIDNUM=707ZZZZZZZ") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/704-b7805be8", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/704-b7805be8", "USEROUTCID="Work Phone" <707ZZZZZZZ>") in new stack
GotoIf("SIP/704-b7805be8", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/704-b7805be8", "0|Set|CALLERID(all)=") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/704-b7805be8", "1|Set|CALLERID(all)=Work Phone <707ZZZZZZZ>") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/704-b7805be8", "0|SetCallerPres|prohib_passed_screen") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/704-b7805be8", "0|AGI|fixlocalprefix") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/704-b7805be8", "OUTNUM=YYYYYYY") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/704-b7805be8", "custom=SIP/sipgate") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/704-b7805be8", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/704-b7805be8", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/704-b7805be8", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/704-b7805be8", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/704-b7805be8", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/704-b7805be8", "SIP/sipgate/YYYYYYY|300|") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/704-b7805be8", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/704-b7805be8", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/704-b7805be8", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 3) - failing through to other trunks") in new stack
-- Executing [YYYYYYY@from-internal:6] Macro("SIP/704-b7805be8", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] GotoIf("SIP/704-b7805be8", "0?emergency|1") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/704-b7805be8", "0?intracompany|1") in new stack
-- Executing [s@macro-outisbusy:3] Playback("SIP/704-b7805be8", "all-circuits-busy-now&pls-try-call-later| noanswer") in new stack
-- <SIP/704-b7805be8> Playing 'all-circuits-busy-now' (language 'en')
-- <SIP/704-b7805be8> Playing 'pls-try-call-later' (language 'en')