<div dir="auto">Yes. I do exactly this but with an extra step:</div><div dir="auto"><br></div><div dir="auto">1. I have the default Kamailio dispatcher pings disabled. </div><div dir="auto"><br></div><div dir="auto">2. I have the Kamailio init route check if we have the floating IP locally, if we do in startup that route will run the rpc cmd to enable pings. </div><div dir="auto"><br></div><div dir="auto">3. On floating IP switchover, keepalived (or whatever) tells Kamailio also to enable pings. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">This way, you only have pings from the active node, and you don’t have warnings in the passive node. (and yes, I also set the socket to the floating IP in the dispatcher records). </div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Joel. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 20, 2020 at 03:40 Yufei Tao <<a href="mailto:yufei.tao@gmail.com">yufei.tao@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Duarte,<div><br></div><div>Not sure if I understand it correctly but are you trying to set up an HA pair of dispatchers?</div><div><br></div><div>If so I am doing it differently in that, I use the Virtual/floating IP (VIP) as socket. This way the master node (which has got the VIP) can send OPTIONs pings out fine but the backup node won't be able to send. Functionally it is fine, but the backup node keeps logging errors because it doesn't have the VIP:</div><div><pre>ERROR: <core> [core/udp_server.c:599]: udp_send(): sendto(sock, buf: 0x7f0e6b54e2e0, len: 372, 0, dst: (<a href="http://192.168.213.143:5060" target="_blank">192.168.213.143:5060</a>), tolen: 16) - err: Network is unreachable (101)
ERROR: tm [../../core/forward.h:231]: msg_send_buffer(): udp_send failed</pre><pre></pre></div><div>When FO happens, the backup node becomes master and takes the VIP, and it functions correctly. But I haven't worked out how to avoid the ERROR loggings on the backup node. Maybe someone else has any better ideas/suggestions?<br></div><div><br></div><div>Cheers,</div><div>Yufei</div><div></div><div><pre><br></pre></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>