QueueMetrics > Outbound and QueueMetrics

Outbound with Asterisk 1.6

<< < (2/8) > >>

QueueMetrics:
If you need to support xagents, that piece of dialplan stores everything in a ready-to-read format in AstDB so it should be trivial to detect.

viniciusfontes:
Tried that, but then the agents doesn't show up logged on on the wallboard. I would like to have something consistent, and I really don't have much time to develop and test complex dialplans and workarounds for those issues.

I'm considering downgrading to Asterisk 1.4, but I have a few doubts. If I use Asterisk 1.4, can I get a consistent behaviour between QM and Asterisk? For example: when an agent logs on via Asterisk, will he show up on logged agents on QM, even in the case of being an outbound queue?

barryf:
Hi,

I use outbound queues fine with Asterisk 1.6. If add something like the following to the part of your dial plan where agents actually log in, it should work:

exten => s,n(loggedin),Set(GLOBAL(AGENTBYCALLERID_${CALLERID(num)})=${AGENTID})
exten => s,n,QueueLog(NONE,NONE,Agent/${AGENTID},AGENTCALLBACKLOGIN,${CALLERID(num)}@from-internal)

..in the above, I set the global variable AGENTBYCALLERID_${CALLERID(num)} so that it is then available for the queuedial-loggedon context to check if the agent is logged on.

The Queuelog line will write out to the queue_log that the agent has logged on, which should sort out your agents being displayed on the wallboard.

Hope this helps.

-Barry

viniciusfontes:
Thanks for the help. How are you registering the agent's logoff?

barryf:

--- Quote from: viniciusfontes on March 03, 2010, 15:57:36 ---Thanks for the help. How are you registering the agent's logoff?

--- End quote ---

In my dialplan which handles this, I include the following:

exten => s,n,Set(GLOBAL(AGENTBYCALLERID_${CALLERID(num)})="")
exten => s,n,QueueLog(NONE,NONE,Agent/${AGENTID},AGENTCALLBACKLOGOFF,${CALLERID(num)}@from-internal,,CommandLogoff)

This basically does the reverse - clears the AGENTBYCALLERID_${CALLERID(num)} variable and writes a suitable queue_log entry.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version