[asterisk-users] Count Available Queue members

Steve Totaro stotaro at asteriskhelpdesk.com
Sat Jul 18 15:00:34 CDT 2009


Assuming he just wants people routed somewhere else if a queue if full, then
my original fast queue timeout answer is the simplest.  Just continue on in
the dialplan.

I hope OP posts again with his/her solution.

Thanks,
Steve T

On Sat, Jul 18, 2009 at 3:18 PM, Alex Balashov <abalashov at evaristesys.com>wrote:

> Assuming that connecting to the socket and authenticating and getting
> the data is really less latent and resource-intensive.  But that's
> just splitting hairs.
>
> --
> Sent from mobile device
>
> On Jul 18, 2009, at 12:57 PM, Steve Edwards
> <asterisk.org at sedwards.com> 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.
> >
> > --
> > Thanks in advance,
> > ---
> > ----------------------------------------------------------------------
> > Steve Edwards       sedwards at sedwards.com      Voice:
> > +1-760-468-3867 PST
> > Newline                                              Fax: +1-760-731-3000
> >
> > _______________________________________________
> > -- 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
>
> _______________________________________________
> -- 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
>



-- 
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/7af63ddb/attachment.htm 


More information about the asterisk-users mailing list