[OpenSIPS-Users] Load Balancing and failover together [v1.7.x]
[Digital^Dude] ®
millennium.bug at gmail.com
Tue Mar 27 11:12:34 CEST 2012
How do I get a load balanced setup with failover (through drouting)..?
1. I have set up my routing logic in the main routing block.
2. Have set t_on_failure("1"); in is_method("INVITE ")
this in my failure_route:
if (!do_routing("10")) {
send_reply("503", "No Rules matching the URI");
xlog("Do_Routing failed........\n");
exit;
}
if (use_next_gw()) {
xlog("In use_next_gw\n");
t_relay();
exit;
}
else {
xlog("In else case.... \n");
t_reply ("503", "Service not available");
exit;
}
But it only redirects the first few calls, as soon as the dr_status becomes
enable=>no. I start getting 503...
Please point out where I'm going wrong...
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120327/19a80955/attachment.htm>
More information about the Users
mailing list