Hi Carsten,<br><br>I tried that before but it&#39;s not what I really need. By saying that , when I added this function to my failure route then every call failure that happened (routing problem let&#39;s say) then immediately this GW was set to Inactive mode and I was not able to use it.<br>
<br>What I&#39;m asking is to understand why Dispatcher module is sending calls to a GW in P state?<br><br>Thanks<br><br>Alex<br><br> <br><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 3:54 PM, Carsten Bock <span dir="ltr">&lt;<a href="mailto:lists@bock.info">lists@bock.info</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Alex,<br>
<br>
do you have a &quot;ds_mark_dst(&quot;p&quot;)&quot; in your failure route? This needs to<br>
be called &quot;threshhold&quot; times in order to set the gateway to probing...<br>
And please be aware of timeouts: If you have a Transaction-timeout of<br>
e.g. 60 seconds, then the failure-route would be executed after 60<br>
seconds and for this time the gateway would stay &quot;active&quot;.<br>
<br>
Carsten<br>
<br>
<br>
2010/11/16 alex pappas &lt;<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi Daniel,<br>
&gt;<br>
&gt; I have configured that option before i send it the email.<br>
&gt; modparam(&quot;dispatcher&quot;, &quot;ds_probing_threshhold&quot;, 2)<br>
&gt;<br>
&gt; I have gateways A,A,B,C. (A and A is the same gw. I want to send more calls<br>
&gt; that&#39;s why is added twice)<br>
&gt;<br>
&gt; C is the dead gateway. It never responds back to the options because is not<br>
&gt; a real IP.<br>
&gt;<br>
&gt; When Dispatcher is sending the Invites it always includes the dead gw C<br>
&gt; which by the way is in probing mode.<br>
&gt;<br>
&gt; Doing some test calls i have the following results in send it Invites:<br>
&gt;<br>
&gt; A, B, A, C<br>
&gt; B, A, C, A<br>
&gt; A, C, A, B<br>
&gt; A, B , A ,C<br>
&gt; B, A, C, A<br>
&gt; A, C, A, B<br>
&gt; A, B , A ,C<br>
&gt; B, A, C, A<br>
&gt; A, C, A, B<br>
&gt; A, B, A, C<br>
&gt; B, A, C, A<br>
&gt;<br>
&gt; As you can see the C dead gw is always included to the Invites send.<br>
&gt;<br>
&gt; Am i missing something in the configuration?<br>
&gt; I also tried to use “9” - use weight based load distribution but with no<br>
&gt; success. i got in the logs that this algorithm is not implemented. I&#39;m doing<br>
&gt; something wrong here or is not implemented in this version of Kamailio. (<br>
&gt; 3.0.1)<br>
&gt;<br>
&gt; Thank you in advance for your help.<br>
&gt;<br>
&gt; Regards<br>
&gt; Alex<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Nov 12, 2010 at 10:14 PM, Daniel-Constantin Mierla<br>
&gt; &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Alex,<br>
&gt;&gt;<br>
&gt;&gt; dispatcher module does not send new invites to inactive gateways. But in<br>
&gt;&gt; case a destination became inactive while some INVITEs were already through<br>
&gt;&gt; dispatcher, these recent inactive gateways may still be used for them.<br>
&gt;&gt;<br>
&gt;&gt; Regarding the probing mode, dispatcher will never select a probing gateway<br>
&gt;&gt; as first option to route the call, but they are kept as alternative. This is<br>
&gt;&gt; the current implementation, we may add a module parameter to skip gateways<br>
&gt;&gt; in probing mode even for secondary alternatives.<br>
&gt;&gt;<br>
&gt;&gt; Non-responsive gateways change the state after a while, see:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2567110" target="_blank">http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2567110</a><br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Daniel<br>
&gt;&gt;<br>
&gt;&gt; On 11/12/10 12:58 PM, alex pappas wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear all,<br>
&gt;&gt;<br>
&gt;&gt; Does anyone can explain how Dispatcher module is sending calls to the<br>
&gt;&gt; gateways in the different states?<br>
&gt;&gt;<br>
&gt;&gt; I mean if I have 3 gateways and the one of them is in Probing mode why<br>
&gt;&gt; Dispatcher is continuing sending there calls? Why this gateway is not<br>
&gt;&gt; changing from Probing to Inactive since is not replaying to OPTIONS messages<br>
&gt;&gt; send by Kamailio?<br>
&gt;&gt;<br>
&gt;&gt; Configuration:<br>
&gt;&gt;<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;flags&quot;, 2)<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;ds_ping_interval&quot;, 5)<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;ds_probing_mode&quot;, 1)<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;ds_probing_threshhold&quot;, 2)<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;dst_avp&quot;, &quot;$avp(s:dst_avp)&quot;)<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;grp_avp&quot;, &quot;$avp(dsgrp)&quot;)<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;cnt_avp&quot;, &quot;$avp(i:202)&quot;)<br>
&gt;&gt; modparam(&quot;dispatcher&quot;, &quot;ds_append_branch&quot;, 0)<br>
&gt;&gt;<br>
&gt;&gt; using db for gw:<br>
&gt;&gt;<br>
&gt;&gt; setid 123,destination sip:xxx.xxxx.xxx, flag 0 ...<br>
&gt;&gt;<br>
&gt;&gt; in ROUTE:<br>
&gt;&gt; if(ds_select_domain(&quot;$avp(s:disp_dstgrp)&quot;, &quot;4&quot;))<br>
&gt;&gt;<br>
&gt;&gt; in Failure Route<br>
&gt;&gt;<br>
&gt;&gt; if(!ds_next_domain())<br>
&gt;&gt;<br>
&gt;&gt; I want Dispatcher when it sees a node gateway that is dead , to Not send<br>
&gt;&gt; any other calls.<br>
&gt;&gt;<br>
&gt;&gt; Thank you in advance<br>
&gt;&gt;<br>
&gt;&gt; Alex<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Daniel-Constantin Mierla<br>
&gt;&gt; <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
</div></div>Carsten Bock<br>
Schomburgstr. 80<br>
22767 Hamburg<br>
Germany<br>
<br>
Mobile +49 179 2021244<br>
Home +49 40 34927217<br>
Fax +49 40 34927218<br>
mailto:<a href="mailto:carsten@bock.info">carsten@bock.info</a><br>
</blockquote></div><br>