<br><br><div class="gmail_quote">On Sat, Jul 18, 2009 at 1:50 PM, Tilghman Lesher <span dir="ltr">&lt;<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Saturday 18 July 2009 11:57:32 Steve Edwards wrote:<br>
&gt; &gt; Gabriel Ortiz Lour wrote:<br>
&gt; &gt;&gt;   Someone know how can I check for available members on a queue Before<br>
&gt; &gt;&gt; I queue the call, so I can do something else with it? Note that is not<br>
&gt; &gt;&gt; the case for joinempty<br>
&gt;<br>
&gt; On Sat, 18 Jul 2009, Alex Balashov wrote:<br>
&gt; &gt; It&#39;s going to take some sort of hack, since there appears to be no<br>
&gt; &gt; dialplan app to do this succinctly.<br>
&gt; &gt;<br>
&gt; &gt; One option is to call an AGI script that in turn runs:<br>
&gt; &gt;<br>
&gt; &gt;    asterisk -rx &#39;queue show your-queue-name&#39; |<br>
&gt; &gt;        egrep &#39;SIP\/.+ \(Not in use\)&#39; | wc -l<br>
&gt;<br>
&gt; You could reduce the number of process creations from 4 (AGI, asterisk<br>
&gt; -rx, egrep, wc) to 1 (AGI) by using AMI in the AGI.<br>
<br>
</div>Or he could just use the builtin dialplan function:<br>
${QUEUE_MEMBER_COUNT(myqueue)}<br>
<font color="#888888"><br>
--<br>
Tilghman &amp; Teryl<br>
with Peter, Cottontail, Midnight, Thumper, &amp; Johnny (bunnies)<br>
and Harry, BB, &amp; George (dogs)<br>
</font><div><div></div></div></blockquote><div><br>I don&#39;t think that answers OP&#39;s question.  &quot;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&quot;<br><br>My understanding of QUEUE_MEMBER_COUNT just give a total of &quot;agents&quot; in the queue.  <br><font size="2"><br>Synopsis
</font><font size="2"><span style="font-family: monospace;"> Count number of members answering a queue
</span></font><br>
<br></div></div>-- <br>Thanks,<br>Steve Totaro <br>+18887771888 (Toll Free)<br>+12409381212 (Cell)<br>+12024369784 (Skype)<br>