[asterisk-users] Count Available Queue members

Steve Totaro stotaro at asteriskhelpdesk.com
Sat Jul 18 13:09:27 CDT 2009


On Sat, Jul 18, 2009 at 1:50 PM, Tilghman Lesher <
tilghman at mail.jeffandtilghman.com> wrote:

> On Saturday 18 July 2009 11:57:32 Steve Edwards wrote:
> > > Gabriel Ortiz Lour wrote:
> > >>   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
> >
> > On Sat, 18 Jul 2009, Alex Balashov wrote:
> > > It's going to take some sort of hack, since there appears to be no
> > > dialplan app to do this succinctly.
> > >
> > > One option is to call an AGI script that in turn runs:
> > >
> > >    asterisk -rx 'queue show your-queue-name' |
> > >        egrep 'SIP\/.+ \(Not in use\)' | wc -l
> >
> > You could reduce the number of process creations from 4 (AGI, asterisk
> > -rx, egrep, wc) to 1 (AGI) by using AMI in the AGI.
>
> Or he could just use the builtin dialplan function:
> ${QUEUE_MEMBER_COUNT(myqueue)}
>
> --
> Tilghman & Teryl
> with Peter, Cottontail, Midnight, Thumper, & Johnny (bunnies)
> and Harry, BB, & George (dogs)
>

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"

My understanding of QUEUE_MEMBER_COUNT just give a total of "agents" in the
queue.

Synopsis  Count number of members answering a queue

-- 
Thanks,
Steve Totaro
+18887771888 (Toll Free)
+12409381212 (Cell)
+12024369784 (Skype)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090718/ce3c9afb/attachment.htm 


More information about the asterisk-users mailing list