<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:10pt"><div>I'd like to think I'm not stupid, but I've been dealing with OpenSER for 2-3 years now and it still frustrates me just as much as it did the very first time I looked at it.<br><br>Can LCR do failover? I have this below. I can see that one of my gateways is selected, seemingly at random, and then when it doesn't reply (because I used a bogus IP), it doesn't time-out after 3s and go to the next gw. Is this possible? How do I do it?<br><br>Btw... can anyone recommend a book on OpenSER, since the documentation is so lacking?<br><br>modparam("tm", "fr_inv_timer_avp", "$avp(i:705)")<br><br>route{<br><br> $avp(i:705) = "3";<br> ...<br><br> if (!lookup("location")) {<br> switch ($retcode)
{<br> case -1:<br> case -3:<br> t_newtran();<br> sl_send_reply("100","Trying");<br> if (!load_gws()) {<br> sl_send_reply("500", "Internal server error, unable to load gateways");<br> exit;<br>
}<br> if(!next_gw()){<br> sl_send_reply("503", "Service not available, no gateways found");<br> exit;<br> };<br> route(1);<br> }<br><br>}<br><br>route[1] {<br><br> if (is_method("INVITE")) {<br> t_on_branch("2");<br> t_on_reply("2");<br> t_on_failure("1");<br> }<br><br> if
(!t_relay()) {<br> sl_reply_error();<br> };<br> exit;<br>}<br><br></div></div><br>
<hr size=1>Never miss a thing. <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a></body></html>