[Serusers] Question about failure route

Daniel-Constantin Mierla Daniel-Constantin.Mierla at fokus.fraunhofer.de
Wed Oct 13 10:42:37 CEST 2004


You have to use
append_branch();

after rewritehostport("secondgatewayip:5060"); in failure_route[1].

Daniel


On 10/13/04 04:48, Manuel Marin Garcia wrote:

> I am trying to implement a Failure route as follows:
>
> modparam("tm", "fr_inv_timer", 15)
> modparam("tm", "fr_timer", 10)
>
> if ((uri=~"^sip:1[0-9]{10}@.*")) {
>        route(4);
>        break;
> };
>
>
> route[4] {
>            rewritehostport("fisrtgatewayip:5060");
>             t_on_failure("1");
>            t_relay();
>            break;
> }
>
>
> failure_route[1] {
>        rewritehostport("secondgatewayip:5060");
>        t_relay();
>        break;
>
> }
>
> But I see that Failure route is never taken. After a SIP trace I see 
> that SER always reply with 408 Request Timeout to the UA. Is there 
> something wrong with routing logic or is there a way to avoid 408 
> message to UA.
>
> Please help!
>
> Thanks
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>




More information about the sr-users mailing list