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([EMAIL PROTECTED])
--
Joel Vandal, CTO
ScopServ Inc.
http://www.scopserv.com/
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to