<HTML>
<HEAD>
<TITLE>Re: [asterisk-users] Count Available Queue members</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Maybe this function will help<BR>
<BR>
QUEUE_MEMBER_COUNT &nbsp;&nbsp;&nbsp;QUEUE_MEMBER_COUNT(&lt;queuename&gt;) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Count number of members answering a queue<BR>
<BR>
This is in at least version 1.6.0.x.<BR>
<BR>
There are a few other related functions that can be seen by using the CLI command:<BR>
<BR>
core show functions like QUEUE<BR>
<BR>
Function names are upper case so you need to use upper case when trying to list them!<BR>
<BR>
-- <BR>
Jim Dickenson<BR>
<a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a><BR>
<BR>
CfMC<BR>
<a href="http://www.cfmc.com/">http://www.cfmc.com/</a><BR>
<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Steve Totaro &lt;stotaro@asteriskhelpdesk.com&gt;<BR>
<B>Reply-To: </B>Asterisk Users Mailing List - Non-Commercial Discussion &lt;asterisk-users@lists.digium.com&gt;<BR>
<B>Date: </B>Sat, 18 Jul 2009 11:17:05 -0400<BR>
<B>To: </B>Asterisk Users Mailing List - Non-Commercial Discussion &lt;asterisk-users@lists.digium.com&gt;<BR>
<B>Subject: </B>Re: [asterisk-users] Count Available Queue members<BR>
<BR>
<BR>
<BR>
On Sat, Jul 18, 2009 at 11:11 AM, Gabriel Ortiz Lour &lt;ortiz.admin@gmail.com&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Hi all,<BR>
<BR>
  Someone know how can I check for available members on a queue Before I queue the call, so I can do something else with it? Note that is not the case for joinempty<BR>
<BR>
Thanks,<BR>
<FONT COLOR="#888888">Gabriel Ortiz<BR>
</FONT><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
Maybe too simple or not what you are looking for, but you can timeout people in the queue quickly and then redirect them via the dialplan.<BR>
<BR>
Similar to the cascading queues below, but do what you want.<BR>
<BR>
<a href="http://www.voip-info.org/wiki/view/Asterisk+call+queues">http://www.voip-info.org/wiki/view/Asterisk+call+queues</a><BR>
</SPAN><FONT SIZE="5"><SPAN STYLE='font-size:18.0px'><B>Cascading Queues <BR>
</B></SPAN></FONT><SPAN STYLE='font-size:12.0px'>You can set up a series of queues that cascade to each other. You can get a similar effect by using the penalty feature but this can be a better way to do things for some situations (e.g. if you want to overflow calls to your receptionist into your office for when your receptionist is busy). <BR>
<BR>
The first thing you must do is have a timeout on our queue. This is done as a parameter of the Queue command used in extensions.conf (example: Queue(dave|t|||45)). <BR>
<BR>
You can then set up a number of queues and simply have your dialplan call each queue in succession. <BR>
<BR>
example: <BR>
 exten =&gt; 1589,1,Answer <BR>
 exten =&gt; 1589,2,Ringing <BR>
 exten =&gt; 1589,3,Wait(2) <BR>
 exten =&gt; 1589,4,Queue(testq|t|||45) <BR>
 exten =&gt; 1589,5,Queue(testq2|t|||45) <BR>
 exten =&gt; 1589,6,Hangup <BR>
  <BR>
-- <BR>
Thanks,<BR>
Steve Totaro <BR>
+18887771888 (Toll Free)<BR>
+12409381212 (Cell)<BR>
+12024369784 (Skype)<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>_______________________________________________<BR>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<BR>
<BR>
asterisk-users mailing list<BR>
To UNSUBSCRIBE or update options visit:<BR>
&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>