Hi Tuan<div><br></div><div>Path doesn&#39;t do NAT traversal (although it plays a role) so it isn&#39;t a replacement for fix_nated_contact and fix_nated_register. The best approach is to replace them with add_contact alias and handle_ruri_alias.</div>
<div><br></div><div>Also be sure to set the advertised address on External A:</div><div><br></div><div>listen=<a href="http://192.168.1.10:5060">192.168.1.10:5060</a> advertise <a href="http://1.2.3.4:5060">1.2.3.4:5060</a></div>
<div><br></div><div>you can find a tutorial <a href="http://sip-router.org/wiki/tutorials/alias-example">here</a> and if you search the list you should find my questions on the topic.<br>
<br>Richard</div><div><br></div><div>PS: You&#39;ll need to use version &gt; 3.3.<br><br><div class="gmail_quote">On 9 January 2013 09:39, Nguyen Anh Tuan <span dir="ltr">&lt;<a href="mailto:tuanna3@vnpt-technology.vn" target="_blank">tuanna3@vnpt-technology.vn</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi All,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></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 “mhomed=1”. <u></u><u></u></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. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.  ACK, CANCEL and BYE are not missing behind NAT.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For NAT Traversal I use PATH Module in Load Balance, and add “Received” like this:<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">...<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">modparam(&quot;path&quot;, &quot;use_received&quot;, 1)<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">..<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">
..<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">record_route();<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">add_path_received();<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">
force_rport();<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">t_relay;<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">..<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">
..<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">And in SIP Server enable Path Parameter for Registrar:<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">modparam(&quot;registrar&quot;, &quot;use_path&quot;, 1)<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">modparam(&quot;registrar&quot;, &quot;path_mode&quot;, 1)<u></u><u></u></p><p class="MsoNormal" style="text-indent:36.0pt">modparam(&quot;registrar&quot;, &quot;path_use_received&quot;, 1)<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt"><u></u> <u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Enable “#!define WITH_NAT” 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 “missing ACK,CANCEL, and BYE in Load Balance” behind NAT.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Best Regard, <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Tuan.<u></u><u></u></p></div></div><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" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>