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. I have tried t_on_failure and t_on_negative, and failure_route[1] and reply_route[1], but all I can manage to do is to break my SER config because - presumably - I'm using old or deprecated commands.
How can I do this please? I'm using:
version: ser 0.9.6 (i386/linux) flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 @(#) $Id: main.c,v 1.197.2.1 2005/07/25 16:56:24 andrei Exp $ main.c compiled on 00:45:42 Jan 11 2006 with gcc 3.3.5
Thanks for helping! Jean-Michel.
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 :(
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.