[OpenSIPS-Users] Loadbalancing timeout for lb_disable()

Schneur Rosenberg rosenberg11219 at gmail.com
Tue Nov 8 11:32:17 CET 2011


Thanks Vlad
On Nov 8, 2011 12:30 PM, "Vlad Paiu" <vladpaiu at opensips.org> wrote:

> Hello,
>
> You can edit the time after which OpenSIPS internally generated a 408
> Timeout by altering the TM module params. See
> http://www.opensips.org/html/**docs/modules/devel/tm.html#**id250308<http://www.opensips.org/html/docs/modules/devel/tm.html#id250308>
>
> Regards,
>
> Vlad Paiu
> OpenSIPS Developer
>
>
> On 11/08/2011 12:13 AM, Schneur Rosenberg wrote:
>
>> 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<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@**gmail.com<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<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<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<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<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111108/d84f0b53/attachment-0001.htm>


More information about the Users mailing list