[Serusers] sl module functions in failure route

Jiri Kuthan jiri at iptel.org
Wed Jul 11 20:57:08 CEST 2007


This piece of config makes sense, but it does not include failure_route
as you had asked before. From within failure_route, call t_reply to
complete transactino processing, don't call sl_send_reply.

-jiri

At 20:12 11/07/2007, 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/
>
>
>--
>Jiri Kuthan            http://iptel.org/~jiri/




More information about the sr-users mailing list