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.