Hi<br><br>Thanks this is what I was testing right now :-)<br>I'm also testing the "ds_probing_mode" = 1 that recommended me Klaus.<br><br>I understand that the scenario you describe is that OPTIONS are sent when the gw is set in "probe" mode ? I have exactly the opposite behaviour here:<br>
<br>modparam("dispatcher", "list_file", "/usr/local/etc/kamailio/dispatcher.list")<br>modparam("dispatcher", "flags", 3)<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", "ds_ping_method", "OPTIONS")<br>
modparam("dispatcher", "ds_ping_interval", 3)<br>modparam("dispatcher", "ds_ping_from", "<a href="mailto:sip%3Afend1@10.132.184.33">sip:fend1@10.132.184.33</a>")<br>modparam("dispatcher", "ds_probing_threshhold", 3)<br>
modparam("dispatcher", "ds_probing_mode", 1)<br><br>I have a simple scenario of load-balancing REGISTER and it looks to work somehow also when I shutdown one gateway my load-balancer takes to much time to detect it.<br>
Does the failure-route also apply to timeout error (REGISTER messages are not handled by the gw that is shutdown) ?<br><br>Regards,<br>Pascal<br> <br><br><div class="gmail_quote">On Mon, Oct 27, 2008 at 10:45 AM, Carsten Bock <span dir="ltr"><<a href="mailto:lists@bock.info">lists@bock.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
you have to add a failure-route, where you set the state to probing<br>
(e.g. ds_set_state("p")). If this is set 3 times<br>
(ds_probing_threshhold), the gateway will be longer selected from<br>
ds_select_domain / .._dst and will be queried with an OPTIONS-request.<br>
In case of a successful query, the gateway will be enabled again.<br>
As long as the state is active, you will not see any OPTIONS-request.<br>
<br>
Carsten<br>
<br>
Am Freitag, den 24.10.2008, 18:08 +0200 schrieb Klaus Darilion:<br>
<div><div></div><div class="Wj3C7c">> Maybe try<br>
> <a href="http://www.kamailio.org/docs/modules/devel/dispatcher.html#id2467955" target="_blank">http://www.kamailio.org/docs/modules/devel/dispatcher.html#id2467955</a><br>
><br>
> klaus<br>
><br>
> Pascal Maugeri schrieb:<br>
> > Hi<br>
> ><br>
> > How do you configure dispatcher to send OPTIONS ping to load-balanced<br>
> > proxies ?<br>
> ><br>
> > I'm using kamailio 1.4.2 with this of configuration:<br>
> ><br>
> > [...]<br>
> > modparam("dispatcher", "ds_ping_method", "OPTIONS")<br>
> > modparam("dispatcher", "ds_ping_interval", 5)<br>
> > modparam("dispatcher", "ds_ping_from", "<a href="mailto:sip%3Afend1@10.132.184.33">sip:fend1@10.132.184.33</a><br>
> > <mailto:<a href="mailto:sip%253Afend1@10.132.184.33">sip%3Afend1@10.132.184.33</a>>")<br>
> > modparam("dispatcher", "ds_probing_threshhold", 3)<br>
> > [...]<br>
> ><br>
> > The load-balancing works properly : I see the traffic being sent to my<br>
> > proxies. But I don't see any SIP OPTIONS packets.<br>
> ><br>
> > I've read in module doc "This method is only available, if compiled with<br>
> > the probing of failed gateways enabled. " but I can't find how to<br>
> > activate this on compilation time, so I'm not sure if I have this<br>
> > feature or not enable.<br>
> ><br>
> > Regards,<br>
> > Pascal<br>
> ><br>
> ><br>
> ><br>
> > ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
> > <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
> <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</div></div></blockquote></div><br>