[OpenSIPS-Users] t_relay behavior with 477 send failed

Amit Sharma asharma at 3clogic.com
Wed Mar 16 13:47:25 CET 2011


I tried the fix from the 1.6 branch. The issue I still face is that now
t_relay returns with a value of 1 even when the relaying has failed.

How do you figure out if t_relay has failed (!t_relay()) does not work in
this case? Does a return value 1 also signify an error?

-Amit

On Tue, Mar 15, 2011 at 3:51 PM, Bogdan-Andrei Iancu <bogdan at opensips.org>wrote:

> Hi Amit,
>
> Following your report, Anca did a fix on SVN - see:
>   http://lists.opensips.org/pipermail/devel/2011-March/007893.html
>
> Please update from SVN and try again.
>
> Regards,
> Bogdan
>
> Amit Sharma wrote:
>
>> I am facing an issue similiar to the one outlined in the thread
>>
>> http://lists.opensips.org/pipermail/users/2010-April/011783.html
>>
>>
>>  I am using the latest stable version of opensips (1.6.4) and tried the
>> solution outlined in the thread above.
>> The issue I have observed is that t_relay function doesn't return control
>> to the script in case of a send failure (e.g inability to establish TCP
>> connection etc)  and I recieve a 477 send failure on the client.
>>
>> This is the relevant and simplified route block that I am using
>>
>>  route{
>>            lookup();
>>          serialize_branches(1);
>>          next_branches();
>>          route(1);
>>  }
>>
>> route[1]{
>>         xlog("L_ERR", "Before t_relay");
>>         t_relay();
>>         xlog("L_ERR", "After t_relay");
>>
>> }
>>
>>   The log statement after the call to t_relay doesn't get printed in case
>> the highest priority contact (TCP)  is unreachable.
>>   In essence any failover logic written on the return value of t_relay
>> doesn't execute.
>>
>> Thanks,
>> Amit
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS eBootcamp - 28th February 2011
> OpenSIPS solutions and "know-how"
>
>
> _______________________________________________
> 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/20110316/f4f748c6/attachment.htm>


More information about the Users mailing list