[OpenSIPS-Users] 404 automatic failover

Pacho Baratta [fabbricadigitale] P.Baratta at fabbricadigitale.it
Mon Oct 12 17:03:57 CEST 2009


Hi all, i need some help with an issue. i'm quite a newbie, so be patien, please. i need to redirect all calss to a different gateway when the 1st returns a sip404.
my route is like this: if (is_method("INVITE")) {
if(uri=~"^sip:@") {
rewritehostport("172.30.1.110:5060");
#
if (tcheckstatus("404")) { sethostport("192.168.2.100:5060");
          t_relay();
    }
#
route(1);
}
but this doesn't seem to work.
can yoi suggest me the right way to do it?
thanks, Pacho


fabbricadigitale srl
Pacho Baratta | Senior Systems Engineer
Tecnhology Engineering
-----------------------------
Via A.Volta, 3 - 26041 - Casalmaggiore - CR
Phone +39 0375 284600
Fax +39 02 57760002
mailto:p.baratta at fabbricadigitale.it
www.fabbricadigitale.it<http://www.fabbricadigitale.it/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091012/34bc36eb/attachment.htm 


More information about the Users mailing list