[asterisk-users] Limit # of inbound calls on SIP trunk

isrlgb at gmail.com isrlgb at gmail.com
Tue Dec 20 16:35:09 CST 2011


Well freepbx has that in the gui you should read the tool tips
Read the trunk limit tooltip 



-----Original Message-----
From: Steve Edwards <asterisk.org at sedwards.com>
Sender: asterisk-users-bounces at lists.digium.com
Date: Tue, 20 Dec 2011 12:16:48 
To: Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
	<asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] Limit # of inbound calls on SIP trunk

Un-top-posting...

> On Mon, 19 Dec 2011, Douglas Mortensen wrote:

>> I have a system with FreePBX, and as far as I can tell it does not 
>> provide a means to limit the number of simultaneous inbound calls on a 
>> SIP trunk. Therefore I suspect that I’ll need to do some manual 
>> dialplan manipulation.

> On Mon, 19 Dec 2011, Steve Edwards wrote:

> The GROUP() and GROUP_COUNT() functions and the GOTOIF() application 
> should do the trick.

On Tue, 20 Dec 2011, Douglas Mortensen wrote:

> Excellent. Do you think these functions would enable me to create rules 
> based on both the concurrent # of inbound and/or outbound calls, or only 
> total # of concurrent calls (agnostic to call direction being inbound 
> vs. outbound)?

If you want a call to be a member of multiple groups, you have to play 
with the category parameter.

         exten = *,n,    set(GROUP()=incoming)
         exten = *,n,    set(GROUP(incoming)=no)
         exten = *,n,    set(GROUP(incoming)=yes)
         exten = *,n,    set(GROUP()=outgoing)
         exten = *,n,    set(GROUP(outgoing)=no)
         exten = *,n,    set(GROUP(outgoing)=yes)
         exten = *,n,    verbose(incoming count = ${GROUP_COUNT(incoming)})
         exten = *,n,    verbose(outgoing count = ${GROUP_COUNT(outgoing)})
         exten = *,n,    verbose(incoming category count = ${GROUP_COUNT(yes at incoming)})
         exten = *,n,    verbose(outgoing category count = ${GROUP_COUNT(yes at outgoing)})
         exten = *,n,    verbose(group list is ${GROUP_LIST()})

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000


More information about the asterisk-users mailing list