[asterisk-users] Multiple Servers: Multiple Peers: call-limit

Gregory Malsack gmalsack at coastalacq.com
Wed Jun 25 04:32:36 CDT 2014

Store the call count in a shared SQL db.

Sent from my Verizon Wireless 4G LTE DROID

Brian LaVallee <b.lavallee at globaltank.jp> wrote:

>I would like to enforce call-limit across multiple servers.  Is there
>any way to pass a call-limit variable between servers 01 & 02, as shown
>below?  Use a global call-limit between multiple servers and peer
>A -- 01 -- Z
>A -- 02 -- Z
>A is using round-robin to reach Z, but in the event that 01 or 02 fail,
>I want the full call-limit available to A.  The call-limit is only
>applied between A and the middle servers.  For the sake of discussion,
>let's say call-limit=10 for both, and the total limit should also be 10.
>Since my round-robin configuration will fall-back to the other server,
>calls can reach a maximum of 20.  Not a state I want to allow.
>exten => _X.,1,NoOp(Use: First Server)
> same => n,Dial(SIP/A-to-01-to-Z/${EXTEN})
> same => n,GotoIf($["${DIALSTATUS}"="CHANUNAVAIL"]?SERVER02,${EXTEN},1)
> same => n,NoOp(yes, it's incomplete)
>exten => _X.,1,NoOp(Use: Second Server)
> same => n,Dial(SIP/A-to-02-to-Z/${EXTEN})
> same => n,GotoIf($["${DIALSTATUS}"="CHANUNAVAIL"]?SERVER01,${EXTEN},1)
> same => n,NoOp(yes, it's incomplete)
>I've though about passing the variable between the middle servers in a
>SIP message, side communication channel.  But, hoping there might be a
>simpler solution.
>Brian LaVallee
>-- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140625/b188aa58/attachment.html>

More information about the asterisk-users mailing list