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       [email protected]      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

Reply via email to