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:[email protected]
www.fabbricadigitale.it<http://www.fabbricadigitale.it/>

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to