[asterisk-users] Best way to limit outgoing calls per trunk

Jonathan Thurman jonathan at thurmantech.com
Sun May 30 12:47:03 CDT 2010


On Sun, May 30, 2010 at 9:37 AM, bruce bruce <bruceb444 at gmail.com> wrote:
> Thanks for the tip. I have been checking those two options. Would you be
> able to provide an example of how GROUP or GROUP_COUNT may check for a trunk
> usuage?

Here is how I do it.  It is based on Asterisk 1.6.1.x, and I created a
generic sub-routine to call for limiting trunks to a specific number
of calls.  The code is documented, so it should give you a good idea
of how to use it.

http://thurmantech.com/node/7

-Jonathan


>From what I see is that you have to assing certain routes a group
> and then count the group, but how I do include a trunk in the group?
> Thanks
>
> On Sat, May 29, 2010 at 7:07 PM, Steve Edwards <asterisk.org at sedwards.com>
> wrote:
>>
>> On Sat, 29 May 2010, bruce bruce wrote:
>>
>> > I am looking to use System() function along with some bash scripting to
>> > determine if a Trunk is being used during certain time of the day or
>> > not. Here is what I have in mind. Please guide me if you know a better
>> > way:
>>
>> Using the GROUP/GROUP_COUNT functions in the dialplan is a better way.
>>
>> Using system() will mean creating a bunch of processes (each
>> sed/awk/cut/etc command).
>>
>> --
>> 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
>
>
> --
> _____________________________________________________________________
> -- 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
>



More information about the asterisk-users mailing list