[asterisk-users] Count Available Queue members
Gabriel Ortiz Lour
ortiz.admin at gmail.com
Tue Jul 21 07:40:40 CDT 2009
Hi all,
Thanks for all the advices given here, but I for what i've found is:
- cant be done with GROUP+GROUP_COUNT+QUEUE_MEMBER_COUNT because it wouldn't
know about the paused members.
- 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)
- 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)
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
Thanks a LOT for the storm of ideas,
Gabriel Ortiz
2009/7/20 Leif Madsen <leif.madsen at asteriskdocs.org>
> Tilghman Lesher wrote:
> >> My understanding of QUEUE_MEMBER_COUNT just give a total of "agents" in
> the
> >> queue.
> >>
> >> Synopsis Count number of members answering a queue
> >
> > It may or may not be the answer to the OP's question, depending upon what
> he
> > meant by "available". Without clarification, it's impossible to know.
>
> And along with this, even if it just returns the total number of queue
> members
> available, that could be useful if you're calling via something like a
> Local
> channel, where you could use the GROUP() and GROUP_COUNT() functions.
>
> Place a GROUP() in the Local channel prior to calling the member, and then
> you
> can do:
>
> exten => start,n,Set(MEMBERS_TO_TAKE_CALLS=$[${GROUP_COUNT(agents)} -
> ${QUEUE_MEMBER_COUNT(queue)}])
>
> Something like that anyways.
>
> Leif Madsen.
> http://www.leifmadsen.com
> http://www.oreilly.com/catalog/asterisk
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090721/607ed61e/attachment.htm
More information about the asterisk-users
mailing list