Hello If many people use different sip-uri to backup their route for example ua1's sip-uri : 1000@server1.ip , the call will be forwarded to 2000@server2.ip when no answer or busy ua2's sip-uri : 1001@server1.ip , the call will be forwarded to 2001@server2.ip when no answer or busy
how should I do that ? Thanks
AR.
----- Original Message ----- From: "Tobias Lindgren" tobias.lindgren@ip-only.se To: "Giuseppe Parlato" gparlato@tnet.it Cc: serusers@lists.iptel.org Sent: Tuesday, May 23, 2006 3:56 PM Subject: Re: [Serusers] backup route
Hello,
You can use the "route[]" and "failure_route[]" functions in ser.cfg.
A short example: if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@") | (uri=~"^sip:1515@")) { route(1); } route[1] { rewritehostport("192.168.0.1:5060"); t_on_failure("1"); t_relay(); }
failure_route[1] { rewritehostport("192.168.0.2:5060"); append_branch(); t_relay(); }
This above would relay on that you have the "tm.so" module loaded. Also, the tm-module has some parameters for timeouts and stuff (such as fr_timer) which you should laborate with.
Good luck!
Br, Tobias
Giuseppe Parlato said the following on 2006-05-22 18:04:
When calling some numbers I have to forward calls to a router cisco (then it wil forward calls out through isdn) or to a backup router cisco if the first one is busy. The route to primary cisco router works but I don't know how to implement the backup route in ser.cfg ? how can I configure a backup route in sip server? I hope someone can answer me soon, I'm in trouble :|
if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@") | (uri=~"^sip:1515@")) { rewritehost("router IP"); forward(uri:host, uri:port); break; };
Thanks
Giuseppe
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers