<br><br><div class="gmail_quote">On Sat, Jul 18, 2009 at 1:50 PM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.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">On Saturday 18 July 2009 11:57:32 Steve Edwards wrote:<br>
> > Gabriel Ortiz Lour wrote:<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>
> On Sat, 18 Jul 2009, Alex Balashov wrote:<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>
> 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>
<br>
</div>Or he could just use the builtin dialplan function:<br>
${QUEUE_MEMBER_COUNT(myqueue)}<br>
<font color="#888888"><br>
--<br>
Tilghman & Teryl<br>
with Peter, Cottontail, Midnight, Thumper, & Johnny (bunnies)<br>
and Harry, BB, & George (dogs)<br>
</font><div><div></div></div></blockquote><div><br>I don't think that answers OP's question. "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>My understanding of QUEUE_MEMBER_COUNT just give a total of "agents" 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>