[OpenSIPS-Users] Loadbalancing timeout for lb_disable()

duane.larson at gmail.com duane.larson at gmail.com
Mon Nov 7 21:59:28 CET 2011


Your setup looks pretty much like this guy except for your first IF  
statement
http://opensips-open-sip-server.1449251.n2.nabble.com/Load-balancer-probe-mode-1-bug-td4245085.html#a5715729

Put this before your first IF statement and then try again

xlog("L_INFO", "------ BEFORE LB IF Statement: Call [$rm] ru[$ru] fu[$fu]  
si[$si] \n");



On , Schneur Rosenberg <rosenberg11219 at gmail.com> wrote:
> Hi



> I'm not yet experienced enough in opensips, so please bear with me.



> I set up a opensips to loadbalance 2 asterisk servers, in the failure

> route I placed





> if (t_check_status("(408)") && t_local_replied("all"))

> {

> lb_disable();



> # Try to load balance once again

> if ( load_balance("2","pstn","1") )

> {

> t_on_failure("1");

> t_relay();

> }

> else

> {

> t_reply("503","Service Unavailable");

> }

> }

> My loadbalancing probing is set to 1 in the database, now when I shut

> Asterisk Opensips will keep on trying again and again because asterisk

> is not replying, how can I have Opensips realize that it timed out and

> create a 408 timeout that will trigger the lb_disable()?



> S. Rosenberg



> _______________________________________________

> Users mailing list

> Users at lists.opensips.org

> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111107/93fd6c9c/attachment.htm>


More information about the Users mailing list