[Serusers] sl module functions in failure route
SIP
sip at arcdiv.com
Wed Jul 11 20:16:09 CEST 2007
You CAN call a non-failure route from within a failure route if you want
to do some tricks.
But why call t_relay directly from a failure route? Wouldn't the fact
that it's in a failure route imply that t_relay failed to complete?
N.
JF wrote:
> So, the following snippet doesn't make sense in a failure route?
> I may try to call t_relay inside a failure route, and, if it fails,
> send a stateless reply back...
>
> if (!t_relay()) {
> sl_send_reply("500","Error relaying");
> exit;
> };
>
> JF
>
> On 7/11/07, Jiri Kuthan <jiri at iptel.org> wrote:
>
>> At 16:34 11/07/2007, JF wrote:
>>
>>> Hi all,
>>>
>>> Is there any particular reason why sl module functions cannot be used
>>> in failure routes?
>>>
>> Yes. Failure_route is only invoked from within stateful processing.
>> If a request was processed statelessly, SER does not really know if
>> it failed.
>>
>> -jiri
>>
>>
>>> I want to send a stateless reply in failure route.
>>>
>>> JF
>>> _______________________________________________
>>> Serusers mailing list
>>> Serusers at lists.iptel.org
>>> http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>
>> --
>> Jiri Kuthan http://iptel.org/~jiri/
>>
>>
>>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list