[Serusers] sl module functions in failure route

JF jfkavaka at gmail.com
Wed Jul 11 20:12:05 CEST 2007


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/
>
>



More information about the sr-users mailing list