I have been looking for a way from the dialplan to inquire if there are any members in a queue. So what I want to do is if no users are members of a queue then I can send the call to a given extention. I have the queue setup all that is working. Just need to be able to send the call to a certain user if no-one is logged into the queue. How do I do that? Thanks Jerry
On Dec 13, 2009, at 7:20 PM, Jerry Geis wrote:> I have been looking for a way from the dialplan to inquire if there are > any members in a queue. > > So what I want to do is if no users are members of a queue then I can > send the call to a given extention. > > I have the queue setup all that is working. Just need to be able to send > the call to a certain user if > no-one is logged into the queue. How do I do that? > > Thanks > > Jerry >In queues.conf, you can have joinempty=no for the selected queue. If there's noone logged in, the dialplan will move forward to the next entry. ---fred
Hi Jerry, I use the built-in function queue_member http://www.asterisk.org/docs/asterisk/trunk/functions/queue_member?type=functions&value=QUEUE_MEMBER and check with a GotoIf statement to check if the number is equal to zero. If it is not I send the call to the queue, if it is I pass the call to dial a cell-phone number or go directly to voicemail depending on which queue the call was originally destined for. Travis ----- Original Message ----- From: "Jerry Geis" <geisj at pagestation.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Sunday, December 13, 2009 4:20:40 PM Subject: [asterisk-users] question on queues I have been looking for a way from the dialplan to inquire if there are any members in a queue. So what I want to do is if no users are members of a queue then I can send the call to a given extention. I have the queue setup all that is working. Just need to be able to send the call to a certain user if no-one is logged into the queue. How do I do that? Thanks Jerry _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091213/3d549e77/attachment.htm