[OpenSIPS-Users] Loadbalancing timeout for lb_disable()

Schneur Rosenberg rosenberg11219 at gmail.com
Mon Nov 7 23:13:10 CET 2011


Ok it was working it just took a very long time until it timed out.

thank you

On Mon, Nov 7, 2011 at 10:59 PM,  <duane.larson at gmail.com> wrote:
> 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
>>
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>



More information about the Users mailing list