[Asterisk-Users] Limit outgoing trunk calls

Robert Jackson RobertJ at promedicalinc.com
Fri Jan 14 08:30:21 MST 2005


>-----Original Message-----
>From: Mike Sander [mailto:mike at corporatebankinginternational.com] 
>Sent: Friday, January 14, 2005 2:00 AM
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] Limit outgoing trunk calls
>
>Does Asterisk have a way of tracking how many people are on the 
>trunk at one time, and accept/reject new calls based on that?
>Is it though the dialplan or the iax.conf?
 
Sure, take a look at the SetGroup/Checkgroup functions.  Basically, 
you can call SetGroup(groupname) on all incoming calls via the 
dialplan, and then call SetGroup(groupname) and CheckGroup(10) for 
your outbound calls.  If you go over the 10th item it will throw 
you to priority+101 which you can set to Busy.

Check out these functions on the wiki for more info:
SetGroup - http://www.voip-info.org/wiki-Asterisk+cmd+SetGroup
CheckGroup - http://www.voip-info.org/wiki-Asterisk+cmd+CheckGroup


Also, Please try not to use HTML e-mail on the list. ;)

Hope this helps,

Robert Jackson




More information about the asterisk-users mailing list