<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Duarte,<br></div><div><br></div><div>You can enable a filter on the nathelper module to help with this<br></div><div><a href="https://www.kamailio.org/docs/modules/5.2.x/modules/nathelper.html#nathelper.p.filter_server_id">https://www.kamailio.org/docs/modules/5.2.x/modules/nathelper.html#nathelper.p.filter_server_id</a><br></div><div><br></div><div>Check the similar setting for usrloc if you're using cache mode<br></div><div><a href="https://www.kamailio.org/docs/modules/5.2.x/modules/usrloc.html#usrloc.p.server_id_filter">https://www.kamailio.org/docs/modules/5.2.x/modules/usrloc.html#usrloc.p.server_id_filter</a><br></div><div><br></div><div>Cheers,<br></div><div>Boden<br></div><div><br></div><div>On Wed, 8 May 2019, at 10:06 PM, Duarte Rocha wrote:<br></div><blockquote type="cite" id="qt"><div dir="auto"><div dir="auto">Greetings,<br></div><div dir="auto"><br></div><div dir="auto">I have two Machines with Kamailio in a High Availability  (HA) configuration. Both machines are active and processing calls and both have one HA IP that can jump to the other machine in case of failure.<br></div><div dir="auto"><br></div><div dir="auto">I also have probing for NAPs configured with each IP as the socket. <br></div><div dir="auto"><br></div><div dir="auto">So, in each machine i have this configuration : <br></div><div dir="auto"><br></div><div dir="auto">listen=udp:HA_Address1<br></div><div dir="auto">listen=udp:HA_Address2<br></div><div dir="auto"><br></div><div dir="auto">NAP 1 being probed from socket HA_Address1<br></div><div dir="auto">NAP 1 being probed from socket HA_Address2<br></div><div dir="auto"><br></div><div dir="auto">I also have /proc/sys/net/ipv4/ip_nonlocal_bind with value 1.<br></div><div dir="auto"><br></div><div dir="auto">Everything works correctly with this configuration. However when the probing is sent for the NAP' my logs get filled with the same error messages.<br></div><div dir="auto"><br></div><div dir="auto">udp_send(): sendto(sock, buf: 0x7f2d4c91fa18, len: 340, 0, dst: (xxx.xxx.xxx.xxx:xxx), tolen: 16) - err: Invalid argument (22)<br></div><div dir="auto">CRITICAL: <core> [core/udp_server.c:602]: udp_send(): invalid sendtoparameters#012one possible reason is the server is bound to localhost and#012attempts to send to the net<br></div><div dir="auto">ERROR: tm [../../core/forward.h:219]: msg_send_buffer(): udp_send failed<br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">The error happens because it is trying to probe a NAP using a socket that isn't active at the moment in the machine.<br></div><div dir="auto"><br></div><div dir="auto">Is there a way for this error not to be logged or be disabled without reducing Log Level to suppress CRITICAL errors?<br></div><div dir="auto">I think this is a standard High Availability configuration. Is there some setting that can disable this kind of errors?<br></div><div dir="auto"><br></div><div dir="auto">Best Regards,<br></div><div dir="auto"><br></div><div dir="auto">Duarte Rocha<br></div></div><div>_______________________________________________<br></div><div>Kamailio (SER) - Users Mailing List<br></div><div>sr-users@lists.kamailio.org<br></div><div>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br></div><div><br></div></blockquote><div><br></div></body></html>