Douglas Mortensen
2011-Dec-20 00:44 UTC
[asterisk-users] Limit # of inbound calls on SIP trunk
Hello all, 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. Essentially I will have 1 (or possibly 2) SIP trunk(s) configured with a total of 4 channels. Let's say that I only want to permit 2 concurrent inbound calls at any time. If any additional calls hit the asterisk box, I want to play them a busy signal & disconnect them. The idea is that I'd like to always have at least 2 channels available for outbound calling at all times. What is the way that you'd recommend accomplishing this? Ultimately, I think that all that I need is a piece of logic in the dialplan when the call initially comes in to say: Are there already 2 existing inbound calls on this SIP trunk? If so, go to context "too-many-calls-play-busy". If not, proceed to normal handling. Something like that. Any ideas? Thanks, - Doug Mortensen Network Consultant Impala Networks Inc CCNA, MCSA, Security+, A+ Linux+, Network+, Server+ A.A.S. Information Technology . www.impalanetworks.com<http://www.impalanetworks.com/> P: (505) 327-7300 F: (505) 327-7545 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111219/909385ba/attachment.htm>
Steve Edwards
2011-Dec-20 00:51 UTC
[asterisk-users] Limit # of inbound calls on SIP trunk
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.The GROUP() and GROUP_COUNT() functions and the GOTOIF() application should do the trick. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Douglas Mortensen
2011-Dec-20 17:05 UTC
[asterisk-users] Limit # of inbound calls on SIP trunk
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)? Thanks, - Doug Mortensen Network Consultant Impala Networks P: 505.327.7300 -----Original Message----- From: Steve Edwards [mailto:asterisk.org at sedwards.com] Sent: Monday, December 19, 2011 5:52 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Limit # of inbound calls on SIP trunk 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.The GROUP() and GROUP_COUNT() functions and the GOTOIF() application should do the trick. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Steve Edwards
2011-Dec-20 20:16 UTC
[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
isrlgb at gmail.com
2011-Dec-20 22:35 UTC
[asterisk-users] Limit # of inbound calls on SIP trunk
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