QueueMetrics > QueueMetrics installation
QM 1.4 and Trixbox 2.6.1
Nic65535:
QM - here is what happened in the CLI:
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
-- Executing [20@queuemetrics:1] Answer("Local/20@queuemetrics-b2c3,2", "") in new stack
-- Executing [20@queuemetrics:2] NoOp("Local/20@queuemetrics-b2c3,2", " "QM: Logging on Agent/5000 to extension 100@from-internal" ") in new stack
== Spawn extension (queuemetrics, 20, 3) exited non-zero on 'Local/20@queuemetrics-b2c3,2'
> Channel Local/20@queuemetrics-b2c3,1 was answered.
-- Executing [10@queuemetrics:1] Answer("Local/20@queuemetrics-b2c3,1", "") in new stack
-- Executing [10@queuemetrics:2] Wait("Local/20@queuemetrics-b2c3,1", "10") in new stack
== Spawn extension (queuemetrics, 10, 2) exited non-zero on 'Local/20@queuemetrics-b2c3,1'
== Manager 'admin' logged off from 127.0.0.1
The login page still said 'Agent/5000: Agent status cannot be determined' and dialing into the queue produced the 'no agents' message I had setup.
Thanks again
Nic
QueueMetrics:
--- Quote from: Nic65535 on May 08, 2008, 13:52:19 --- -- Executing [20@queuemetrics:2] NoOp("Local/20@queuemetrics-b2c3,2", " "QM: Logging on Agent/5000 to extension 100@from-internal" ") in new stack
== Spawn extension (queuemetrics, 20, 3) exited non-zero on 'Local/20@queuemetrics-b2c3,2'
--- End quote ---
I see that it goes to step 3 and logs nothing. Can you post the modified queuemetrics-extension.conf?
Also please post the response of the CLI command show agents.
Nic65535:
QM,
Ok ran the asterisk CLI (asterisk -r) and then typed 'show agents' - got the response 'No such command 'show agents'. Is this what I was supposed to do (sorry as I said I'm a newbie at this).
queuemetrics-extension.conf looks like:
;
; ================================================================
; The following dialplan context is used by QueueMetrics
; through the manager API.
; - $Id: extensions_queuemetrics.conf,v 1.2 2007/07/30 15:43:55 lenz Exp $
;
; You should modify it to fit your system.
;
; To enable this file, copy it to /etc/asterisk
; and add the line:
; #include extensions_queuemetrics.conf
; at the end of your extensions.conf file.
; ================================================================
;
[queuemetrics]
; extension 0 is a dummy end point
exten => 10,1,Answer
exten => 10,2,Wait(10)
exten => 10,3,Hangup
; extension 11 makes remote monitoring possible
exten => 11,1,Answer
exten => 11,2,NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )
exten => 11,3,NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" )
exten => 11,4,NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )
exten => 11,5,ChanSpy(${QM_AGENT_CODE})
exten => 11,6,Hangup
; extension 12: set call status code
exten => 12,1,Answer
exten => 12,2,NoOp( "QM: Setting call status '${CALLSTATUS}' on call '${CALLID}' for agent '${AGENTCODE}'" )
exten => 12,3,System( echo "${EPOCH}|${CALLID}|NONE|Agent/${AGENTCODE}|CALLSTATUS|${CALLSTATUS}" >> /var/log/asterisk/queue_log )
exten => 12,4,Hangup
; extension 20: agent callback login
; For this to work, there must be no password on the agent.
exten => 20,1,Answer
exten => 20,2,NoOp( "QM: Logging on Agent/${AGENTCODE} to extension ${AGENT_EXT}@from-internal" )
exten => 20,3,AgentCallBackLogin(${AGENTCODE}||${AGENT_EXT}@from-internal)
exten => 20,4,Hangup
; extension 21: agent callback logoff
exten => 21,1,Answer
exten => 21,2,NoOp( "QM: Logging off Agent/${AGENTCODE}" )
exten => 21,3,System(asterisk -rx "agent logoff Agent/${AGENTCODE}")
exten => 21,4,Hangup
; extension 22: agent pause (with pause code)
exten => 22,1,Answer
exten => 22,2,NoOp( "QM: Pausing Agent/${AGENTCODE} with pause reason '${PAUSEREASON}' " )
exten => 22,3,PauseQueueMember(|Agent/${AGENTCODE})
exten => 22,4,System( echo "${EPOCH}|${UNIQUEID}|NONE|Agent/${AGENTCODE}|PAUSEREASON|${PAUSEREASON}" >> /var/log/asterisk/queue_log )
exten => 22,5,Hangup
; extension 23: agent unpause
exten => 23,1,Answer
exten => 23,2,NoOp( "QM: Unpausing Agent/${AGENTCODE} " )
exten => 23,3,UnpauseQueueMember(|Agent/${AGENTCODE})
exten => 23,4,Hangup
; --------------------------------------------------------------------
; $Log: extensions_queuemetrics.conf,v $
; Revision 1.2 2007/07/30 15:43:55 lenz
; Bug #173: default compatibili con TrixBox.
;
; Revision 1.1 2007/06/18 13:30:24 lenz
; Prima versione.
;
;
;
Thanks again
Nic
QueueMetrics:
Looks like your system is not default-loading Agent channels, so when it tries to login Agent/5000 it crashes because it knows not of Agent/... channels.
Try this:
--- Code: ---module unload chan_agent.so
module load chan_agent.so
--- End code ---
and see if after that the commands agent show or show agents work.
Nic65535:
I'm assuming you wanted me to do this from the asterisk CLI? If so then:
module unload chan_agent.so
== Unregistered channel type 'Agent'
module load chan_agent.so
-bash: module: command not found
Nic
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version