Author Topic: QM 1.4 and Trixbox 2.6.1  (Read 31464 times)

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #30 on: June 09, 2008, 20:57:12 »
I perform a new install of trixbox
update all modules

create two extensions... and one trunk

and now following the topic
http://forum.queuemetrics.com/index.php?topic=276.0

in this moment im downloading the queuemetrics...

lets try again  8)

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #31 on: June 09, 2008, 21:58:30 »
Now callbacklogin 299 is working fine
monitoring and recording incoming calls to queue 200 too  ::) ::) ::)

I will test outgoing now
thanks quemetrics

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #32 on: June 09, 2008, 22:10:13 »
the firs problem...

the QM manual says

"Enabling outgoing calls in TrixBox
First of all you edit the file /etc/asterisk/extension_custom.conf and append the
following piece of dial plan:
[queuedial]
exten => _XXX.,1,SetVar(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,SetVar(MY_NUM=${EXTEN:3})
exten => _XXX.,3,SetVar(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}|Zap/g0/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion"

I dont have the file /etc/asterisk/extension_custom.conf
just have the file /etc/asterisk/extensions_custom.conf

should I create  ??? ??? ????

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #33 on: June 10, 2008, 09:17:16 »
No it's a typo  ;D

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #34 on: June 10, 2008, 16:07:13 »
Do you mean a type error?

I have edited the extensions_custom.conf

But I dont have a Zaptel adpter... I have Sip provider trunk.

I have named the trunk sip.provider.net

[queuedial]
exten => _XXX.,1,SetVar(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,SetVar(MY_NUM=${EXTEN:3})
exten => _XXX.,3,SetVar(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/sip.provider.net/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion

And create a custom like a manual.

But

I want to dial 0800 (yes, is a valid number)
dial 8 1 2 3 0 8 0 0

and this happens:

recordingcheck|20080610-100613|1213106773.100: Outbound recording not enabled
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-f9e4,2'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-08474ef0' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-08474ef0'

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #35 on: June 11, 2008, 16:31:47 »
I guess you created a trunk and everything else as per the config guide?

From your log nothing is visible.
Try set verbosity 100 and see what happens.
If nothing changes - try show dialplan queuemetrics and see what is preinted.



alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #36 on: June 11, 2008, 17:29:00 »
Yes I do.

Connected to Asterisk 1.4.19-1 RPM by vc-rpms@voipconsulting.nl currently running on trixbox1 (pid = 2526)
Verbosity is at least 10
    -- Executing [81230800@from-internal:1] Macro("SIP/27-0908abe0", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-0908abe0", "user-callerid: device 27") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-0908abe0", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-0908abe0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-0908abe0", "1|Set|REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-0908abe0", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-0908abe0", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-0908abe0", "AMPUSERCIDNAME=lincoln") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-0908abe0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-0908abe0", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-0908abe0", "CALLERID(all)="lincoln" <27>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-0908abe0", "REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-0908abe0", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-0908abe0", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-0908abe0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-0908abe0", "Using CallerID "lincoln" <27>") in new stack
    -- Executing [81230800@from-internal:2] Set("SIP/27-0908abe0", "_NODEST=") in new stack
    -- Executing [81230800@from-internal:3] Macro("SIP/27-0908abe0", "record-enable|27|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-0908abe0", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-0908abe0", "recordingcheck|20080611-112650|1213198010.4") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080611-112650|1213198010.4: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-0908abe0", "No recording needed") in new stack
    -- Executing [81230800@from-internal:4] Macro("SIP/27-0908abe0", "dialout-trunk|1|1230800||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-0908abe0", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-0908abe0", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-0908abe0", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-0908abe0", "DIAL_NUMBER=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-0908abe0", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-0908abe0", "GROUP()=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-0908abe0", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-0908abe0", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-0908abe0", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-0908abe0", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-0908abe0", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-0908abe0", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-0908abe0", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-0908abe0", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-0908abe0", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-0908abe0", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-0908abe0", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-0908abe0", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-0908abe0", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-0908abe0", "CallerID set to "lincoln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-0908abe0", "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-0908abe0", "OUTNUM=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-0908abe0", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-0908abe0", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-0908abe0", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-0908abe0", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-0908abe0", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-0908abe0", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-0908abe0", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-0908abe0", "post_num=@queuedial/n".") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-0908abe0", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-0908abe0", "the_num=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-0908abe0", "Local/1230800@queuedial/n.|300|") in new stack
    -- Called 1230800@queuedial/n.
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-0666,2'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-0908abe0", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-0908abe0", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-0908abe0", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
    -- Executing [81230800@from-internal:5] Macro("SIP/27-0908abe0", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-0908abe0", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/27-0908abe0> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-0908abe0", "pls-try-call-later|noanswer") in new stack
    -- <SIP/27-0908abe0> Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0908abe0' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0908abe0'


##############################################

trixbox1*CLI> show dialplan queuemetrics
[ Context 'queuemetrics' created by 'pbx_config' ]
  '10' =>           1. Answer()                                   [pbx_config]
                    2. Wait(10)                                   [pbx_config]
                    3. Hangup()                                   [pbx_config]
  '11' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )  [pbx_config]
                    3. NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" ) [pbx_config]
                    4. NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )    [pbx_config]
                    5. ChanSpy(${QM_AGENT_CODE})                  [pbx_config]
                    6. Hangup()                                   [pbx_config]
  '12' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Setting call status ${CALLSTATUS} on call ${CALLID} for agent ${AGENTCODE}" ) [pbx_config]
                    3. System( echo "${EPOCH}|${CALLID}|NONE|Agent/${AGENTCODE}|CALLSTATUS|${CALLSTATUS}" >> /var/log/asterisk/queue_log ) [pbx_config]
                    4. Hangup()                                   [pbx_config]
  '20' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Logging on Agent/${AGENTCODE} to extension ${AGENT_EXT}@from-internal" ) [pbx_config]
                    3. AgentCallBackLogin(${AGENTCODE}||${AGENT_EXT}@from-internal) [pbx_config]
                    4. Hangup()                                   [pbx_config]
  '21' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Logging off Agent/${AGENTCODE}" ) [pbx_config]
                    3. System(asterisk -rx "agent logoff Agent/${AGENTCODE}") [pbx_config]
                    4. Hangup()                                   [pbx_config]
  '22' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Pausing Agent/${AGENTCODE} with pause reason ${PAUSEREASON} " ) [pbx_config]
                    3. PauseQueueMember(|Agent/${AGENTCODE})      [pbx_config]
                    4. System( echo "${EPOCH}|${UNIQUEID}|NONE|Agent/${AGENTCODE}|PAUSEREASON|${PAUSEREASON}" >> /var/log/asterisk/queue_log ) [pbx_config]
                    5. Hangup()                                   [pbx_config]
  '23' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Unpausing Agent/${AGENTCODE} " ) [pbx_config]
                    3. UnpauseQueueMember(|Agent/${AGENTCODE})    [pbx_config]
                    4. Hangup()                                   [pbx_config]

-= 7 extensions (30 priorities) in 1 context. =-



QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #37 on: June 12, 2008, 08:46:17 »
Looks like it's not being executed at all - see:

    -- Called 1230800@queuedial/n.
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-0666,2'
  == Everyone is busy/congested at this time (1:0/0/1)

Try a show dialplan queuedial - what do you get?

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #38 on: June 12, 2008, 16:17:29 »
-= 1 extension (6 priorities) in 1 context. =-
trixbox1*CLI> show dialplan queuedial
[ Context 'queuedial' created by 'pbx_config' ]
  '_XXX.' =>        1. SetVar(MY_QUE=${EXTEN:0:3})                [pbx_config]
                    2. SetVar(MY_NUM=${EXTEN:3})                  [pbx_config]
                    3. SetVar(MY_AGENT=${CALLERIDNUM})            [pbx_config]
                    4. NoOp(Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}) [pbx_config]
                    5. MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|) [pbx_config]
                    7. Congestion()                               [pbx_config]

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #39 on: June 13, 2008, 09:31:22 »
Aren't you missing line #6? :)
BTW, try changing the SetVar() to Set() and see if that changes anything.

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #40 on: June 16, 2008, 21:06:30 »
I have change the extensions_custom

and make a call

Verbosity was 3 and is now 100
    -- Executing [80800@from-internal:1] Macro("SIP/27-0a03b808", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-0a03b808", "user-callerid: device 27") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-0a03b808", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-0a03b808", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-0a03b808", "1|Set|REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-0a03b808", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-0a03b808", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-0a03b808", "AMPUSERCIDNAME=lincoln") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-0a03b808", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-0a03b808", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-0a03b808", "CALLERID(all)="lincoln" <27>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-0a03b808", "REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-0a03b808", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-0a03b808", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-0a03b808", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-0a03b808", "Using CallerID "lincoln" <27>") in new stack
    -- Executing [80800@from-internal:2] Set("SIP/27-0a03b808", "_NODEST=") in new stack
    -- Executing [80800@from-internal:3] Macro("SIP/27-0a03b808", "record-enable|27|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-0a03b808", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-0a03b808", "recordingcheck|20080616-153042|1213644642.22") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080616-153042|1213644642.22: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-0a03b808", "No recording needed") in new stack
    -- Executing [80800@from-internal:4] Macro("SIP/27-0a03b808", "dialout-trunk|1|0800||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-0a03b808", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-0a03b808", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-0a03b808", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-0a03b808", "DIAL_NUMBER=0800") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-0a03b808", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-0a03b808", "GROUP()=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-0a03b808", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-0a03b808", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-0a03b808", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-0a03b808", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-0a03b808", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-0a03b808", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-0a03b808", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-0a03b808", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-0a03b808", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-0a03b808", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-0a03b808", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-0a03b808", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-0a03b808", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-0a03b808", "CallerID set to "lincoln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-0a03b808", "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-0a03b808", "OUTNUM=0800") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-0a03b808", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-0a03b808", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-0a03b808", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-0a03b808", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-0a03b808", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-0a03b808", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-0a03b808", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-0a03b808", "post_num=@queuedial/n".") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-0a03b808", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-0a03b808", "the_num=0800") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-0a03b808", "Local/0800@queuedial/n.|300|") in new stack
    -- Called 0800@queuedial/n.
  == Spawn extension (queuedial, 0800, 1) exited non-zero on 'Local/0800@queuedial-df31,2'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-0a03b808", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-0a03b808", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-0a03b808", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
    -- Executing [80800@from-internal:5] Macro("SIP/27-0a03b808", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-0a03b808", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/27-0a03b808> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-0a03b808", "pls-try-call-later|noanswer") in new stack
    -- <SIP/27-0a03b808> Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0a03b808' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0a03b808'
« Last Edit: June 16, 2008, 21:31:30 by alien »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #41 on: June 17, 2008, 10:49:10 »
Code: [Select]
Called 0800@queuedial/n.
  == Spawn extension (queuedial, 0800, 1) exited non-zero on 'Local/0800@queuedial-df31,2'


It should be 1230800 not 0800.

I find it strange that you have NO log at all from the queuedial...
Try also changing the SetVar() to Set() in the queuedial context.

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #42 on: June 18, 2008, 19:07:05 »
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>


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: QM 1.4 and Trixbox 2.6.1
« Reply #43 on: June 20, 2008, 09:10:35 »
Getting better now:

Code: [Select]
-- 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'

Now it looks like DeadAGI is not executing. Have you checked you have the AGI file in place, and it's executable?

alien

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: QM 1.4 and Trixbox 2.6.1
« Reply #44 on: June 23, 2008, 20:11:03 »
No
I dont know how do this

but I read this
http://forum.queuemetrics.com/index.php?topic=261.0

And I have got this:

-- Executing [81230800@from-internal:1] Macro("SIP/27-093b8758", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-093b8758", "user-callerid: device 27") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-093b8758", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-093b8758", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-093b8758", "1|Set|REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-093b8758", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-093b8758", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-093b8758", "AMPUSERCIDNAME=lincoln") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-093b8758", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-093b8758", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-093b8758", "CALLERID(all)="lincoln" <27>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-093b8758", "REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-093b8758", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-093b8758", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-093b8758", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-093b8758", "Using CallerID "lincoln" <27>") in new stack
    -- Executing [81230800@from-internal:2] Set("SIP/27-093b8758", "_NODEST=") in new stack
    -- Executing [81230800@from-internal:3] Macro("SIP/27-093b8758", "record-enable|27|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-093b8758", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-093b8758", "recordingcheck|20080623-141004|1214244604.81") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080623-141004|1214244604.81: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-093b8758", "No recording needed") in new stack
    -- Executing [81230800@from-internal:4] Macro("SIP/27-093b8758", "dialout-trunk|3|1230800||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-093b8758", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-093b8758", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-093b8758", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-093b8758", "DIAL_NUMBER=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-093b8758", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-093b8758", "GROUP()=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-093b8758", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-093b8758", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-093b8758", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-093b8758", "outbound-callerid|3") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-093b8758", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-093b8758", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-093b8758", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-093b8758", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-093b8758", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-093b8758", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-093b8758", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-093b8758", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-093b8758", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-093b8758", "CallerID set to "lincoln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-093b8758", "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-093b8758", "OUTNUM=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-093b8758", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-093b8758", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-093b8758", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-093b8758", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-093b8758", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-093b8758", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-093b8758", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-093b8758", "post_num=@queuedial/n") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-093b8758", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-093b8758", "the_num=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-093b8758", "Local/1230800@queuedial/n|300|") in new stack
    -- Called 1230800@queuedial/n
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-bd07,2'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-093b8758", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-093b8758", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-093b8758", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
    -- Executing [81230800@from-internal:5] Macro("SIP/27-093b8758", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-093b8758", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/27-093b8758> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-093b8758", "pls-try-call-later|noanswer") in new stack
    -- <SIP/27-093b8758> Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-093b8758' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-093b8758'