[Asterisk-Users] Queue - check agent
Joel Vandal
jvandal at infoteck.qc.ca
Thu Feb 9 05:54:43 MST 2006
Hi,
>I have defined 4 queue's. Is there any way to check is there any agent logged in any of those queue's?
>
>What I would like to do is to check if there is any agent in any of queue's and if there is, then I'll will transfer a call to that queue, it there isn't I would like to do something else with a call.
>
>
The Queue application sets the QUEUESTATUS channel variable upon
completion. The status of the call can be : TIMEOUT, FULL, JOINEMPTY,
LEAVEEMPTY, JOINUNAVAIL or LEAVEUNAVAIL.
Here an example....
...
exten => 3,5,Queue(scopserv-test|tH|||30)
exten => 3,6,GotoIf($["${QUEUESTATUS}" = "JOINEMPTY"]?1000)
exten => 3,7,GotoIf($["${QUEUESTATUS}" = "JOINUNAVAIL"]?1000)
exten => 3,8,GotoIf($["${QUEUESTATUS}" = "FULL"]?1000)
exten => 3,9,NoOp(Normal Queue exist)
exten => 3,10,Hangup
exten => 3,1000,Voicemail(b1000 at scopserv)
--
Joel Vandal, CTO
ScopServ Inc.
http://www.scopserv.com/
More information about the asterisk-users
mailing list