<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><div>I'm using OpenSER 1.2.2. I can't get the dispatcher to do failover.<br><br>Here's my module parameters...<br><br>modparam("dispatcher", "list_file", "/etc/openser/dispatcher.list")<br>modparam("dispatcher", "flags", 2)<br>modparam("dispatcher", "dst_avp", "$avp(i:271)")<br>modparam("dispatcher", "grp_avp", "$avp(i:272)")<br>modparam("dispatcher", "cnt_avp", "$avp(i:273)")<br>modparam("dispatcher", "force_dst", 1)<br>modparam("tm","fr_timer",3)<br><br>Here's my dispatcher list file:<br>1 sip:119.42.149.76:5099<br>1 sip:119.42.149.79:5099<br><br>And, my routing logic is below. <br><br>The first thing that I don't understand is that when I print $avp(i:271) I get "sip:119.42.149.76:5099". Where did the other IP address form the list file go? When I print $avp(i:273), I get "2" which is
supposed to be the count of the number of items in the list. Where's the other IP gone? I only see one.<br><br>The failover routing doesn't work. When OpenSER fails to connect to the first IP, it goes into failure_route(11) like it is supposed to, but it DOES NOT try the other IP address (the one that is missing from $avp(i:271)). I have confirmed this by running ngrep on port 5060.<br><br>So... question is... why is the dispatcher only loading one entry from the dispatcher list file into the avp?<br><br>Doug.<br><br><br>route[10] {<br> xlog("L_INFO","Inbound Routing");<br> t_on_failure("11");<br> ds_select_dst("1","4");<br> xlog("L_INFO","---> $avp(i:271) $avp(i:272) $avp(i:273)");<br> forward();<br> xlog("L_INFO","Trying first route $dd $od $rd $td $br");<br> t_relay();<br>}<br><br>failure_route[11] {<br>
xlog("L_INFO","First route failed. Trying second");<br> if(t_check_status("408") ){<br> ds_next_dst(); <br> t_on_failure("12");<br> t_relay();<br> }<br> else {<br> t_reply("501", "Not Implemented");<br> }<br>}<br><br>failure_route[12] {<br> route(13);<br>}<br><br>route[13] {<br> xlog("L_INFO","CRAP");<br> return;<br>}<br><br><br><br></div></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>