Finally I could get it to work by running a shell script which parsed results from 'queue show' CLI command in dearch of 'Not in Use' members. It was done with an AGI.<div><br></div><div>Regards,</div><div>
<br></div><div>Daniel<br><br><div class="gmail_quote">On Tue, Feb 8, 2011 at 11:52 AM, Carlos Chavez <span dir="ltr"><<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 2011-02-07 at 10:44 -0500, Daniel - Asterisk wrote:<br>
</div><div><div></div><div class="h5">> Hi Danny,<br>
><br>
><br>
> Could you please let me know what function do I use to get if the<br>
> queue is full?<br>
><br>
><br>
> Elder<br>
><br>
> On Mon, Feb 7, 2011 at 10:42 AM, Danny Nicholas <<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>><br>
> wrote:<br>
><br>
> ______________________________________________________________<br>
> From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of<br>
> Daniel - Asterisk<br>
> Sent: Monday, February 07, 2011 9:38 AM<br>
> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
> Subject: [asterisk-users] About maxlen parameter in queues<br>
><br>
><br>
><br>
><br>
><br>
> Dear list,<br>
><br>
><br>
><br>
><br>
> I want to avoid sending calls to a queue when it is full. From<br>
> the fact that 'maxlen' must be at least 1 (I wish it could be<br>
> zero but it isn't) I'd like to know if there's a way to do it.<br>
> Setting the Queue() timeout to a little value is not the most<br>
> suitable option.<br>
><br>
><br>
> I'm using asterisk 1.4.21 but I don't know if there are some<br>
> options available on release 1.8<br>
><br>
><br>
><br>
><br>
><br>
> Thanks,<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> Elder Arohuanca Lagos<br>
><br>
><br>
> t. 992728100<br>
><br>
><br>
><br>
> This is a bit “hackish”, but why don’t you just make a context<br>
> that uses AGI to query the queue and only let the call proceed<br>
> if not full?<br>
><br>
><br>
><br>
</div></div> Maybe it would be easier to use the GROUP and GROUP_COUNT functions to<br>
see how many users are in the queue and decide on that. Although this<br>
really defeats the purpose of having a Queue.<br>
<font color="#888888"><br>
<br>
--<br>
Telecomunicaciones Abiertas de México S.A. de C.V.<br>
Carlos Chávez Prats<br>
Director de Tecnología<br>
+52-55-91169161 ext 2001<br>
</font><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>