Hi all,<br><br> Thanks for all the advices given here, but I for what i've found is:<br><br>- cant be done with GROUP+GROUP_COUNT+QUEUE_MEMBER_COUNT because it wouldn't know about the paused members.<br>- cant be done with the quick queue timeout: it works, but I dont want the call to get counted for another queued call (maybe I could ignore this calls later on a report, but i dont like this idea to leave to the report to do it)<br>
<br>- the AGI calling either AMI or a shell script is the easiest solution, but I wonder about the proc/resource consuming. (I've had problems using too much of "asterisk -rx ..." on scripts, leaving 'zombie' asterisk -rx processes lying around... And the AMI QueueStatus really gives lots of info)<br>
<br>Since the Asterisk I'm using already have a lot of patches for tiny features that I needed I started to code a variant of the QUEUE_MEMBER_COUNT called QUEUE_MEMBER_COUNT_AVAILABLE, so as soon as its finished I could post it here<br>
<br>Thanks a LOT for the storm of ideas,<br>Gabriel Ortiz<br><br><br><br><div class="gmail_quote">2009/7/20 Leif Madsen <span dir="ltr"><<a href="mailto:leif.madsen@asteriskdocs.org">leif.madsen@asteriskdocs.org</a>></span><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">Tilghman Lesher wrote:<br>
>> My understanding of QUEUE_MEMBER_COUNT just give a total of "agents" in the<br>
>> queue.<br>
>><br>
>> Synopsis Count number of members answering a queue<br>
><br>
> It may or may not be the answer to the OP's question, depending upon what he<br>
> meant by "available". Without clarification, it's impossible to know.<br>
<br>
</div>And along with this, even if it just returns the total number of queue members<br>
available, that could be useful if you're calling via something like a Local<br>
channel, where you could use the GROUP() and GROUP_COUNT() functions.<br>
<br>
Place a GROUP() in the Local channel prior to calling the member, and then you<br>
can do:<br>
<br>
exten => start,n,Set(MEMBERS_TO_TAKE_CALLS=$[${GROUP_COUNT(agents)} -<br>
${QUEUE_MEMBER_COUNT(queue)}])<br>
<br>
Something like that anyways.<br>
<font color="#888888"><br>
Leif Madsen.<br>
<a href="http://www.leifmadsen.com" target="_blank">http://www.leifmadsen.com</a><br>
<a href="http://www.oreilly.com/catalog/asterisk" target="_blank">http://www.oreilly.com/catalog/asterisk</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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>
</div></div></blockquote></div><br>