<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23588">
<STYLE></STYLE>
</HEAD>
<BODY 
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" 
bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi Olle,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks for getting back to me.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Kamailio seems to be receiving inbound sip udp 
correctly on the virtual IP's - and is able to respond to that received 
traffic.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The issue seems more to be related to the mhomed 
mechanism where Kamailio tries to identify the correct interface to use for for 
new outbound traffic.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I do not understand your references to sysctl - can 
you provide any example?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Many Thanks,</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>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=oej@edvina.net href="mailto:oej@edvina.net">Olle E. Johansson</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=sr-users@lists.sip-router.org 
  href="mailto:sr-users@lists.sip-router.org">Kamailio (SER) - Users Mailing 
  List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 13, 2015 9:06 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [SR-Users] Unable to route 
  outbound with multiple VRRP IP's</DIV>
  <DIV><BR></DIV><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 
    style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 14px Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px" 
    bgcolor="#ffffff">
    <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 
    style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 14px Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px" 
    bgcolor="#ffffff">
    <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-BOTTOM: medium none; BORDER-LEFT: medium none; BACKGROUND-COLOR: rgb(176,176,176); WIDTH: 328px; HEIGHT: 1px; COLOR: rgb(144,144,144); BORDER-TOP: medium none; BORDER-RIGHT: medium none">

    <TABLE 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none">
      <TBODY>
      <TR>
        <TD 
        style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; PADDING-LEFT: 8px; PADDING-RIGHT: 15px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"><A 
          href="http://www.avast.com/"><IMG border=0 
          src="http://static.avast.com/emails/avast-mail-stamp.png"></A></TD>
        <TD>
          <P 
          style="FONT-FAMILY: Calibri, Verdana, Arial, Helvetica; COLOR: rgb(61,77,90); 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>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>SIP Express Router 
  (SER) and Kamailio (OpenSER) - sr-users mailing 
  list<BR>sr-users@lists.sip-router.org<BR>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<BR></BLOCKQUOTE>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <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:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                This email has been checked for viruses by Avast antivirus software.
                                <br><a href="http://www.avast.com/">www.avast.com</a>
                        </p>
                </td>
        </tr>
</table>
<br />
</BODY></HTML>