<br><div class="gmail_quote">On Sat, Jul 18, 2009 at 12:57 PM, Steve Edwards <span dir="ltr"><<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>></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">> Gabriel Ortiz Lour wrote:<br>
<br>
>> Someone know how can I check for available members on a queue Before<br>
>> I queue the call, so I can do something else with it? Note that is not<br>
>> the case for joinempty<br>
<br>
</div><div class="im">On Sat, 18 Jul 2009, Alex Balashov wrote:<br>
<br>
> It's going to take some sort of hack, since there appears to be no<br>
> dialplan app to do this succinctly.<br>
><br>
> One option is to call an AGI script that in turn runs:<br>
><br>
> asterisk -rx 'queue show your-queue-name' |<br>
> egrep 'SIP\/.+ \(Not in use\)' | wc -l<br>
><br>
<br>
</div>You could reduce the number of process creations from 4 (AGI, asterisk<br>
-rx, egrep, wc) to 1 (AGI) by using AMI in the AGI.<br>
<font color="#888888"><br>
--<br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000<br>
</font><div><div></div><br></div></blockquote><br>
<b>QueueMemberStatus</b><br>
(may generate a WHOLE LOT of extra manager events)</div><br>Scary!<br><br>-- <br>Thanks,<br>Steve Totaro <br>+18887771888 (Toll Free)<br>+12409381212 (Cell)<br>+12024369784 (Skype)<br>