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