>-----Original Message-----
>From: Mike Sander [mailto:[EMAIL PROTECTED] 
>Sent: Friday, January 14, 2005 2:00 AM
>To: asterisk-users@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

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to