QueueMetrics > QueueMetrics installation
QM 1.4 and Trixbox 2.6.1
QueueMetrics:
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:
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:
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:
-= 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:
Aren't you missing line #6? :)
BTW, try changing the SetVar() to Set() and see if that changes anything.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version