[asterisk-users] AgentRequest() and which agent id?

Shahid H shahidh at gmail.com
Fri Aug 7 10:06:28 CDT 2015


Hi,

If agents is already logged in via AgentLogin() and users dialled extension
300 which will be placed in Queue(support-queue).

How to find out which agent is available I can put their Agent id
in AgentRequest() ?

If this is not a good approach then how it should be done?

Agent should automatically get next call when he/she is available.

extensions.conf

[LocalSets]
exten => 300,1,Answer()
same => n,Queue(support-queue)
same => n,hangup


[agents] ;callback
exten => 800,1,AgentRequest(????) ; How to get Agent id that is available
to take call?
same => n,NoOp(AGENT_STATUS is ${AGENT_STATUS})
same => n,Playback(silence/1)
same => n,Hangup()


Example in the queue.conf

member => Local/800 at agents,0,Name 1,Agent:1001
and more..


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150807/a4acf4b2/attachment.html>


More information about the asterisk-users mailing list