here is
[queuedial]
exten => _XXX.,1,Set(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,Set(MY_NUM=${EXTEN:3})
exten => _XXX.,3,Set(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten =>
_XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|SIP/user.provider.net/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion
I have dial "81230800"
8 is the prefix like a manual...
Verbosity was 7 and is now 10
-- Executing [81230800@from-internal:1] Macro("SIP/27-0831f968", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/27-0831f968", "user-callerid: device 27") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/27-0831f968", "AMPUSER=27") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-0831f968", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-0831f968", "1|Set|REALCALLERIDNUM=27") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/27-0831f968", "REALCALLERIDNUM is 27") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/27-0831f968", "AMPUSER=27") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/27-0831f968", "AMPUSERCIDNAME=lincoln") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-0831f968", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/27-0831f968", "AMPUSERCID=27") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/27-0831f968", "CALLERID(all)="lincoln" <27>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/27-0831f968", "REALCALLERIDNUM=27") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-0831f968", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/27-0831f968", "TTL: ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-0831f968", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/27-0831f968", "Using CallerID "lincoln" <27>") in new stack
-- Executing [81230800@from-internal:2] Set("SIP/27-0831f968", "_NODEST=") in new stack
-- Executing [81230800@from-internal:3] Macro("SIP/27-0831f968", "record-enable|27|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/27-0831f968", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/27-0831f968", "recordingcheck|20080618-130552|1213808752.12") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080618-130552|1213808752.12: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/27-0831f968", "No recording needed") in new stack
-- Executing [81230800@from-internal:4] Macro("SIP/27-0831f968", "dialout-trunk|1|1230800||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/27-0831f968", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-0831f968", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-0831f968", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/27-0831f968", "DIAL_NUMBER=1230800") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/27-0831f968", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/27-0831f968", "GROUP()=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-0831f968", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-0831f968", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/27-0831f968", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-0831f968", "outbound-callerid|1") in new stack
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-0831f968", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-0831f968", "REALCALLERIDNUM is 27") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-0831f968", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing [s@macro-outbound-callerid:9] Set("SIP/27-0831f968", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:10] Set("SIP/27-0831f968", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/27-0831f968", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-0831f968", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-0831f968", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,18)
-- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-0831f968", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-0831f968", "CallerID set to "lincoln" <27>") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-0831f968", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/27-0831f968", "OUTNUM=1230800") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/27-0831f968", "custom=AMP") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-0831f968", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-0831f968", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-0831f968", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-0831f968", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,22)
-- Executing [s@macro-dialout-trunk:22] Set("SIP/27-0831f968", "pre_num=AMP:Local/") in new stack
-- Executing [s@macro-dialout-trunk:23] Set("SIP/27-0831f968", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:24] Set("SIP/27-0831f968", "post_num=@queuedial/n".") in new stack
-- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-0831f968", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,26)
-- Executing [s@macro-dialout-trunk:26] Set("SIP/27-0831f968", "the_num=1230800") in new stack
-- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-0831f968", "Local/1230800@queuedial/n.|300|") in new stack
-- Called 1230800@queuedial/n.
-- Executing [1230800@queuedial:1] Set("Local/1230800@queuedial-e3b2,2", "MY_QUE=123") in new stack
-- Executing [1230800@queuedial:2] Set("Local/1230800@queuedial-e3b2,2", "MY_NUM=0800") in new stack
-- Executing [1230800@queuedial:3] Set("Local/1230800@queuedial-e3b2,2", "MY_AGENT=") in new stack
-- Executing [1230800@queuedial:4] NoOp("Local/1230800@queuedial-e3b2,2", "Ag: N: 0800 Q: 123") in new stack
-- Executing [1230800@queuedial:5] MixMonitor("Local/1230800@queuedial-e3b2,2", "Q-123-1213808752.14.wav|b|") in new stack
== Auto fallthrough, channel 'Local/1230800@queuedial-e3b2,2' status is 'UNKNOWN'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-0831f968", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-0831f968", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-0831f968", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [81230800@from-internal:5] Macro("SIP/27-0831f968", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/27-0831f968", "all-circuits-busy-now|noanswer") in new stack
-- <SIP/27-0831f968> Playing 'all-circuits-busy-now' (language 'en')
== Begin MixMonitor Recording Local/1230800@queuedial-e3b2,2
== End MixMonitor Recording Local/1230800@queuedial-e3b2,2
-- Executing [s@macro-outisbusy:2] Playback("SIP/27-0831f968", "pls-try-call-later|noanswer") in new stack
-- <SIP/27-0831f968> Playing 'pls-try-call-later' (language 'en')
-- Executing [s@macro-outisbusy:3] Macro("SIP/27-0831f968", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/27-0831f968", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/27-0831f968", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/27-0831f968", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/27-0831f968", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/27-0831f968", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/27-0831f968", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-0831f968' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-0831f968' in macro 'outisbusy'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-0831f968'
trixbox1*CLI>