<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi All,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I have 2 interfaces - External A (behind NAT) and Internal B (LAN) in Kamailio Load Balance, and enable Multi-Homing function &#8220;mhomed=1&#8221;. <o:p></o:p></p><p class=MsoNormal>Load Balance dispatches to Kamailio SIP Servers via the Internal B (LAN) (each Kamailio SIP server has both proxy and registrar in one box). For RTP relay, I use RTPproxy in other server, has 2 interfaces A&amp;B like Load Balance. <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>If using 2 interfaces in Load Balance, Registration and calling NORMAL with 2 users behind NAT, but the call will be interrupted after 30 seconds due to the ACK message (after Ringing, 200 OK) STOP in Load Balance in return and not relayed to other UA . CANCEL and BYE have same error like ACK.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I tried using only one interface for load balancing (External = Internal IP), and SIP Server binds to Load Balance in the same network, EVERYTHING IS OK. &nbsp;ACK, CANCEL and BYE are not missing behind NAT.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>For NAT Traversal I use PATH Module in Load Balance, and add &#8220;Received&#8221; like this:<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>...<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>modparam(&quot;path&quot;, &quot;use_received&quot;, 1)<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>..<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>..<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>record_route();<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>add_path_received();<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>force_rport();<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>t_relay;<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>..<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>..<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>And in SIP Server enable Path Parameter for Registrar:<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>modparam(&quot;registrar&quot;, &quot;use_path&quot;, 1)<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>modparam(&quot;registrar&quot;, &quot;path_mode&quot;, 1)<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>modparam(&quot;registrar&quot;, &quot;path_use_received&quot;, 1)<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'><o:p>&nbsp;</o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Enable &#8220;#!define WITH_NAT&#8221; in default kamailio.cfg for RTP Controlling, but I removed all fix_nated_register and fix_nated_contact in SIP Server, because using PATH module.I try enable both fix_nat_register and fix_nated_contact, or only fix_nat_register but NOT SOLVE Problem &#8220;missing ACK,CANCEL, and BYE in Load Balance&#8221; behind NAT.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Best Regard, <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Tuan.<o:p></o:p></p></div></body></html>