[Serusers] Failure route

Jean-Michel Hiver jhiver at ykoz.net
Sat Apr 22 16:10:09 CEST 2006


Jean-Michel Hiver a écrit :

> Jean-Michel Hiver a écrit :
>
>> Hi Guys,
>>
>> I am trying to get ser to t_relay a communication to a given gateway, 
>> then t_relay to another one if that didn't work. 
>
>
> NB: "Didn't work" means that the gateway is circuit-busy, unavailable 
> or unreachable. Thanks for your help! I'm really stuck :(
>
OK, I got this working thanks to an MSN buddy so I will post the answer 
here for the reference:

    route[5] {
            rewritehostport ("xxx.xxx.xxx.xxx:5060");
            t_on_failure("5");
            if(isflagset(1))
                    append_branch();
            setflag(1);
            t_relay();
    }
   
   
    failure_route[5] {
            route(6);
    }
   
   
    route[6] {
            rewritehostport ("yyy.yyy.yyy.yyy:5060");
            if(isflagset(1))
                    append_branch();
            setflag(1);
            t_relay();
    }

Works with ser 0.9.6. You need the tm module.

Google this is for you: ser sip express router iptel fallback route hunting

Cheers,
Jean-Michel.

-- 
Jean-Michel Hiver - http://ykoz.net/
Découvrez la Réunion des Technologies IP & Telecom
TEL: +262 (0)262 55 03 98 - RCS 434 273 330 SAINT PIERRE





More information about the sr-users mailing list