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.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to