Hello, I might be wrong here, but I thought that in Queues.conf, if you defined a queue with joinempty=no, or joinempty=strict then no calls will be placed in the queue, and asterisk will go onto the next extension in the dial plan.
; This setting controls whether callers can join a queue with no members. There ; are three choices: ; ; yes - callers can join a queue with no members or only unavailable members ; no - callers cannot join a queue with no members ; strict - callers cannot join a queue with no members or only unavailable ; members ; ; joinempty = yes ; ; If you wish to remove callers from the queue when new callers cannot join, ; set this setting to one of the same choices for 'joinempty' ; ; leavewhenempty = yes -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joel Vandal Sent: 09 February 2006 12:55 To: Asterisk Users Mailing List - Non-Commercial Discussion; [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Queue - check agent 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 _______________________________________________ --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
