Hi

Thanks this is what I was testing right now :-)
I'm also testing the "ds_probing_mode" = 1 that recommended me Klaus.

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:

modparam("dispatcher", "list_file", "/usr/local/etc/kamailio/dispatcher.list")
modparam("dispatcher", "flags", 3)
modparam("dispatcher", "dst_avp", "$avp(i:271)")
modparam("dispatcher", "grp_avp", "$avp(i:272)")
modparam("dispatcher", "cnt_avp", "$avp(i:273)")
modparam("dispatcher", "ds_ping_method", "OPTIONS")
modparam("dispatcher", "ds_ping_interval", 3)
modparam("dispatcher", "ds_ping_from", "sip:fend1@10.132.184.33")
modparam("dispatcher", "ds_probing_threshhold", 3)
modparam("dispatcher", "ds_probing_mode", 1)

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.
Does the failure-route also apply to timeout error (REGISTER messages are not handled by the gw that is shutdown) ?

Regards,
Pascal


On Mon, Oct 27, 2008 at 10:45 AM, Carsten Bock <lists@bock.info> wrote:
Hi,

you have to add a failure-route, where you set the state to probing
(e.g. ds_set_state("p")). If this is set 3 times
(ds_probing_threshhold), the gateway will be longer selected from
ds_select_domain / .._dst and will be queried with an OPTIONS-request.
In case of a successful query, the gateway will be enabled again.
As long as the state is active, you will not see any OPTIONS-request.

Carsten

Am Freitag, den 24.10.2008, 18:08 +0200 schrieb Klaus Darilion:
> Maybe try
> http://www.kamailio.org/docs/modules/devel/dispatcher.html#id2467955
>
> klaus
>
> Pascal Maugeri schrieb:
> > Hi
> >
> > How do you configure dispatcher to send OPTIONS ping to load-balanced
> > proxies ?
> >
> > I'm using kamailio 1.4.2 with this of configuration:
> >
> > [...]
> > modparam("dispatcher", "ds_ping_method", "OPTIONS")
> > modparam("dispatcher", "ds_ping_interval", 5)
> > modparam("dispatcher", "ds_ping_from", "sip:fend1@10.132.184.33
> > <mailto:sip%3Afend1@10.132.184.33>")
> > modparam("dispatcher", "ds_probing_threshhold", 3)
> > [...]
> >
> > The load-balancing works properly : I see the traffic being sent to my
> > proxies. But I don't see any SIP OPTIONS packets.
> >
> > I've read in module doc "This method is only available, if compiled with
> > the probing of failed gateways enabled. " but I can't find how to
> > activate this on compilation time, so I'm not sure if I have this
> > feature or not enable.
> >
> > Regards,
> > Pascal
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users@lists.kamailio.org
> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users@lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users