[Serusers] Fail Over Route

Greger V. Teigre greger at teigre.com
Fri Oct 13 09:28:32 CEST 2006


append_branch() only supports constants in 0.9.x
g-)

Suraj Kumar wrote:
> Hi All,
>
> Any one does have done the failover route using the append_Branch ?
>
> I was trying to send the calls to a different route if the primary 
> gateway is down.
> Here is what I had in my config, but not sure why the uri parameter is 
> not accepted in the append_branch function as mentione below.
>
>
> If I use a constant instead, it workd fine!
>
>
> Thanks in advance for any suggestions.
> Regards,
> Sudhir
>
> **********************************************************
>
> failure_route[1] {
> log (1, "*******************Failure route ********************");
>
>
>        if (status=~"[5-6]0[0-9]") {
>        rewritehostport ("207.160.xxx.xxx:5060");
>
>       append_branch(uri);
> #       append_branch("sip:33715619000116 at 207.160.xxx.xxx:5060");
>
>        t_relay();
>       break;
>    };
> }
>
> **********************************************************
>
> _________________________________________________________________
> Try the new Live Search today!  
> http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG 
>
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>



More information about the sr-users mailing list