I could still use some help on understanding what I'm missing that is preventing gws from transitioning back into the 'active' state from 'probing'. Currently, I have to babysit this OpenSIPS instance.<div>
<br></div><div>Again, to summarize, when dispatcher detects a failure, it puts the gw into 'probing' state & begins sending OPTIONS messages to the "failed" gw. Even though the gateway begins replying with 200s, dispatcher never returns it to an 'active' state. I have to restart OpenSIPS to return it to an 'active' state.<br>
<div><br></div><div>Here are the relevant pieces of my config script:</div><div><div><font class="Apple-style-span" face="'courier new', monospace"># ----- dispatcher params -----</font></div><div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "flags", 2)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "dst_avp", "$avp(i:271)")</font></div><div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "attrs_avp", "$avp(i:272)")</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "grp_avp", "$avp(i:273)")</font></div><div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "cnt_avp", "$avp(i:274)")</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "ds_ping_interval", 1)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "ds_probing_threshhold", 32)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "ds_probing_mode", 0)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">modparam("dispatcher", "options_reply_codes", "501, 403, 200")</font></div>
</div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><div><font class="Apple-style-span" face="'courier new', monospace">failure_route[1]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">{</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> if (t_was_cancelled()) {</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> exit;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> }</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> if ((t_check_status("408")) && (t_local_replied("last")))</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> {</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> xlog("L_ERR","Gateway Failure! $ci\n");</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> ds_mark_dst("p");</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> t_on_failure("1");</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> t_relay();</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> }</font></div><div><font class="Apple-style-span" face="'courier new', monospace">}</font></div>
</div><div><br></div><div>Again, any assistance would be greatly appreciated.</div><div><br></div><div>Thanks.</div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Oct 18, 2010 at 7:31 AM, thrillerbee <span dir="ltr"><<a href="mailto:thrillerbee@gmail.com">thrillerbee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Anca,<div><br></div><div>I have configured the ds_probing_threshold parameter which allows me to adjust when I gw goes from active to probing.</div>
<div><br></div><div>However, my issue is getting the gw back to active. For some reason, it will never transition back - even with successful 200 OK responses to the OPTIONS messages that are triggered when a gw goes to "probing". The examples below show that I can't even force it back to active from probing to active with MI commands - I have to restart OpenSIPS.</div>
<div><br></div><div>Thanks.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Oct 18, 2010 at 5:50 AM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org" target="_blank">anca@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#ffffff">
Hi Thrillerbee,<br>
<br>
You can try to adjust the time when a gateway state is changed into
probing by setting the "ds_probing_threshhold" <code></code>
parameter
(<a href="http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id250525" target="_blank">http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id250525</a>).<br>
<br>
Regards,<br>
-- <br>
<pre cols="72">Anca Vamanu
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a></pre><div><div></div><div>
<br>
On 10/16/2010 08:01 AM, thrillerbee wrote:
</div></div><blockquote type="cite"><div><div></div><div>I have been able to get the dispatcher module to detect a
gw failure and put it into a probing state & route traffic
elsewhere. However, when the gw returns (& begins responding to
OPTIONS with 200s), dispatcher never puts it back in the active state.
<div><br>
</div>
<div>In fact, I cannot even manually put the server back in the
active state with mi functions. I can put it in an inactive state, but
it returns to probing if I try to set it to active:</div>
<div><br>
</div>
<div>
<div>ogw1:~# opensipsctl fifo ds_list</div>
<div>SET_NO:: 1</div>
<div>SET:: 0</div>
<div> URI:: <a>sip:12.121.80.38</a> flag=P</div>
<div> URI:: <a>sip:12.121.80.39</a> flag=A</div>
<div> URI:: <a>sip:12.121.80.40</a> flag=A</div>
<div>ogw1:~# opensipsctl fifo ds_set_state i 0 <a>sip:12.121.80.38</a> </div>
<div>ogw1:~# opensipsctl fifo ds_list</div>
<div>SET_NO:: 1</div>
<div>SET:: 0</div>
<div> URI:: <a>sip:12.121.80.38</a> flag=I</div>
<div> URI:: <a>sip:12.121.80.39</a> flag=A</div>
<div> URI:: <a>sip:12.121.80.40</a> flag=A</div>
<div>ogw1:~# opensipsctl fifo ds_set_state a 0 <a>sip:12.121.80.38</a> </div>
<div>ogw1:~# opensipsctl fifo ds_list</div>
<div>SET_NO:: 1</div>
<div>SET:: 0</div>
<div> URI:: <a>sip:12.121.80.38</a> flag=P</div>
<div> URI:: <a>sip:12.121.80.39</a> flag=A</div>
</div>
<div> URI:: <a>sip:12.121.80.40</a> flag=A</div>
<div><br>
</div>
<div>Is there some setting that I am missing that allows gateways to
transition from probing to active?</div>
<div><br>
</div>
<div>Thanks.</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<div><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</div></pre>
</blockquote>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>