Author Topic: URL on agent RT page  (Read 5314 times)

rosran

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
URL on agent RT page
« on: April 23, 2008, 11:56:03 »
It's possibile to open a url to a web page application (with information of caller id) when an agent answer a call?
I read something (user manual p.115) but i don't known how and in which configuration file implement it.
I use Trixbox 2.6.0.7
Thank you.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: URL on agent RT page
« Reply #1 on: April 23, 2008, 15:55:25 »
Yes, it's on the Agent's page - in a standard QM install, try loggin in with Agent/101 password 999 to see it (of course you will  see no calls unless you do have an agent/101 active in the queue system).  ;D

rosran

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: URL on agent RT page
« Reply #2 on: April 23, 2008, 17:43:40 »
I see this option but i don't know how configure it.
I have imported my agents with setup wizard.
Thank you.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: URL on agent RT page
« Reply #3 on: April 23, 2008, 18:26:24 »
Then it should already be working.
The only thing is that you need to set the url in ythe queue(9 app in asterisk.

rosran

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: URL on agent RT page
« Reply #4 on: April 23, 2008, 19:11:23 »
Where <Set the url in the queue(9 app in asterisk. >?

I have set:

extensions_custom.conf

#include extensions_queuemetrics.conf

[from-internal-custom]
exten => 298,1,AgentCallBackLogin(||@from-internal)

extensions_queuemetrics.conf

[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

configuration.propertis

callfile.dir=tcp:admin:amp111@127.0.0.1
cluster.servers=trix
cluster.trix.manager=tcp:admin:amp111@127.0.0.1

Thank you

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: URL on agent RT page
« Reply #5 on: April 24, 2008, 14:46:55 »
Where you call the queue() commad, you can pass alonga URL - see http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Queue