<font face="trebuchet ms,sans-serif">How do I get a load balanced setup with failover (through drouting)..?<br>1. I have set up my routing logic in the main routing block. <br>2. Have set t_on_failure("1"); in is_method("INVITE ")<br>
<br>this in my failure_route:<br><br><span style="font-family:courier new,monospace"> if (!do_routing("10")) {</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> send_reply("503", "No Rules matching the URI");</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> xlog("Do_Routing failed........\n");</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> exit;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> }</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> if (use_next_gw()) {</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> xlog("In use_next_gw\n");</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> t_relay();</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> exit;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> }</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> else {</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> xlog("In else case.... \n");</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> t_reply ("503", "Service not available");</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> exit;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> }</span><br style="font-family:courier new,monospace">But it only redirects the first few calls, as soon as the dr_status becomes enable=>no. I start getting 503...<br>
Please point out where I'm going wrong...<br><br>Thanks.<br></font>