Well freepbx has that in the gui you should read the tool tips Read the trunk limit tooltip
-----Original Message----- From: Steve Edwards <asterisk....@sedwards.com> Sender: asterisk-users-boun...@lists.digium.com Date: Tue, 20 Dec 2011 12:16:48 To: Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users@lists.digium.com> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@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@incoming)}) exten = *,n, verbose(outgoing category count = ${GROUP_COUNT(yes@outgoing)}) exten = *,n, verbose(group list is ${GROUP_LIST()}) -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwa...@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