<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 13 Feb 2015, at 09:48, <<a href="mailto:mark@brightvoip.co.uk">mark@brightvoip.co.uk</a>> <<a href="mailto:mark@brightvoip.co.uk">mark@brightvoip.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#ffffff" style="font-family: Helvetica; font-size: 14.181818008422852px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div><font size="2" face="Arial">Hi,</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">I am trying to install a Kamailio server in a HA configuration, with IP's for 3 attached networks.  I am using Keepalived/VRRP to manage the VIP's.  I have tested v 4.1.6 and latest 4.2.2</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2"><font face="Arial">I have 3 x listen entries, one for each network and mhomed=1.  Also, for info, we have<span class="Apple-converted-space"> </span><code class="language-bash">net.ipv4.ip_nonlocal_bind = 1  in sysctl.conf</code></font></font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">listen=udp:my.public.net.46:5060<br>listen=udp:192.168.106.46:5060<br>listen=udp:192.168.116.46:5060<br></font></div></div></blockquote><div><br></div><div>On a Linux system, kamailio can not listen to an address not assigned to the system, without a specific sysctl.</div><div>If the 3 virtual IPs are independently moving between the servers, and you have fixed the sysctl (which I</div><div>can not remember right now) you will always have kamailio's that can't reach the network since the address</div><div>is not there. You may want to start Kamailio that listens to one IP when that IP is assigned by Keepalived.</div><div>Keepalived has scripts executed when an IP is assigned or lost on the system.</div><div><br></div><div>Hope this helps.</div><div>/O</div><br><blockquote type="cite"><div bgcolor="#ffffff" style="font-family: Helvetica; font-size: 14.181818008422852px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div><font size="2" face="Arial">mhomed=1<br></font></div><div><font size="2" face="Arial">I have dispatcher set up to load balance over two seperate groups of Asterisk servers, one on each private network.  Dispatcher does probing to know which Asterisks are 'alive'.</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">When I ran the system, Kamailio/Dispatcher was not able to send any probing OPTIONS to any Asterisk (normal PINGS work fine in all networks in/out of Asterisk/Kamailio)</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">Looking at the log, I see these entries for all 3 networks:</font></div><div><font size="2" face="Arial">Feb 12 17:28:19 app-srv-dev-1-01 /usr/local/sbin/kamailio[2992]: ERROR: <core> [forward.c:218]: get_out_socket(): no socket found<br>Feb 12 17:28:19 app-srv-dev-1-01 /usr/local/sbin/kamailio[2992]: ERROR: <core> [forward.c:220]: get_out_socket(): no corresponding socket found for(u<br>dp:192.168.116.38:5060)<br>Feb 12 17:28:19 app-srv-dev-1-01 /usr/local/sbin/kamailio[2992]: ERROR: tm [ut.h:345]: uri2dst2(): no corresponding socket found for "192.168.116.38"<br> af 2 (udp:192.168.116.38:5060)<br>Feb 12 17:28:19 app-srv-dev-1-01 /usr/local/sbin/kamailio[2992]: ERROR: tm [uac.c:307]: t_uac_prepare(): t_uac: no socket found<br>Feb 12 17:28:19 app-srv-dev-1-01 /usr/local/sbin/kamailio[2992]: ERROR: dispatcher [dispatch.c:2564]: ds_check_timer(): unable to ping [sip:192.168.1<br>16.38:5060]<br></font></div><div><font size="2" face="Arial">I notice from other logging that Kamailio is receiving and processing incoming OPTIONS messages, and sending appropriate replies.</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">Now, this might not be a Kamailio issue, as when I run the same config with 3 IP's, but NOT using VRRP/Keepalived/Aliased IP's, everything works normally.</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">However, I do need to run this setup in HA, so would welcome any suggestions as to how I might resolve this issue.</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">Kind regards,</font></div><div><font size="2" face="Arial">Mark Hall</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"> </font></div><br><br><hr style="border: none; color: rgb(144, 144, 144); background-color: rgb(176, 176, 176); height: 1px; width: 328.3636169433594px;"><table style="border-collapse: collapse; border: none;"><tbody><tr><td style="border: none; padding: 0px 15px 0px 8px;"><a href="http://www.avast.com/"><img border="0" src="http://static.avast.com/emails/avast-mail-stamp.png"></a></td><td><p style="color: rgb(61, 77, 90); font-family: Calibri, Verdana, Arial, Helvetica; font-size: 12pt;">This email has been checked for viruses by Avast antivirus software.<span class="Apple-converted-space"> </span><br><a href="http://www.avast.com/">www.avast.com</a></p></td></tr></tbody></table><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br></div></blockquote></div><br></body></html>