[asterisk-users] check channels

Felipe Figueiredo felipe.figueiredo86 at gmail.com
Mon Aug 9 18:59:39 CDT 2010


Steve,
you are right, i'm gonna use the group function, I tested here and it works
pretty fine. Thanks.

Danny, thanks for the help once again!

On Mon, Aug 9, 2010 at 4:36 PM, Steve Edwards <asterisk.org at sedwards.com>wrote:

> On Mon, 9 Aug 2010, Felipe Figueiredo wrote:
>
> > is there a way to see how many channels of an specific tecnology are
> > being used?
>
> See? From where? Within the dialplan or from an external process?
>
> > Like, i have a zap card, e1 (30 channels), and there are 10 channels
> > being used at this moment. When the E1 reaches 15 busy channels I need
> > to receive a call or something like this, telling me that 15 of 30
> > channels are busy. How can I do this?
>
> Within the dial plan you can use the GROUP() and GROUP_COUNT() functions.
> You could set the group to the technology and check the count as each call
> enters your dial plan. (Asterisk will automagically decrement the count as
> the calls are terminated.) If the count exceeds your threshold, you could
> use system() to create a call file to call you and play an appropriate
> message.
>
> From an external process you can parse the output of "asterisk -r -x 'show
> channels'," "asterisk -r -x 'sip show channels'," or "asterisk -r -x 'zap
> show channels'." Note that these are the "1.2" commands. You are probably
> using a more current version. If the count exceeds your threshold, create
> a call file to call you and play an appropriate message.
>
> --
> 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 --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> 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/20100809/01ca9c85/attachment.htm 


More information about the asterisk-users mailing list