404 automatic failover

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

404 automatic failover

Pacho Baratta [fabbricadigitale]

1.     2009-10-12 16:12:43 CEST

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

[hidden email]
www.fabbricadigitale.it

 


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