<div><div>Store the call count in a shared SQL db.</div><div><br/></div><div><font style="color:#333333"><i>Sent from my Verizon Wireless 4G LTE DROID</i></font></div></div><br><br>Brian LaVallee <b.lavallee@globaltank.jp> wrote:<br><br>I would like to enforce call-limit across multiple servers.  Is there<br>any way to pass a call-limit variable between servers 01 & 02, as shown<br>below?  Use a global call-limit between multiple servers and peer<br>connections.<br><br>A -- 01 -- Z<br>A -- 02 -- Z<br><br>A is using round-robin to reach Z, but in the event that 01 or 02 fail,<br>I want the full call-limit available to A.  The call-limit is only<br>applied between A and the middle servers.  For the sake of discussion,<br>let's say call-limit=10 for both, and the total limit should also be 10.<br><br>Since my round-robin configuration will fall-back to the other server,<br>calls can reach a maximum of 20.  Not a state I want to allow.<br><br>#server_a_extensions.conf<br>[SERVER01]<br>exten => _X.,1,NoOp(Use: First Server)<br> same => n,Dial(SIP/A-to-01-to-Z/${EXTEN})<br> same => n,GotoIf($["${DIALSTATUS}"="CHANUNAVAIL"]?SERVER02,${EXTEN},1)<br> same => n,NoOp(yes, it's incomplete)<br><br>[SERVER02]<br>exten => _X.,1,NoOp(Use: Second Server)<br> same => n,Dial(SIP/A-to-02-to-Z/${EXTEN})<br> same => n,GotoIf($["${DIALSTATUS}"="CHANUNAVAIL"]?SERVER01,${EXTEN},1)<br> same => n,NoOp(yes, it's incomplete)<br><br>I've though about passing the variable between the middle servers in a<br>SIP message, side communication channel.  But, hoping there might be a<br>simpler solution.<br><br><br>Sincerely,<br>Brian LaVallee<br><br><br><br>-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>               http://www.asterisk.org/hello<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>   http://lists.digium.com/mailman/listinfo/asterisk-users<br>