<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Try this:</div><div><br></div><div>- Enable a<span class="Apple-style-span" style="font-family: Tahoma, Verdana, sans-serif; font-size: 13px; ">gressive_nat_detection on the profile as per Dave's suggestion</span></div><div><span class="Apple-style-span" style="font-family: Tahoma, Verdana, sans-serif; font-size: 13px; ">- Make sure SIP ALG is not enabled on the NAT router</span></div><div><span class="Apple-style-span" style="font-family: Tahoma, Verdana, sans-serif; font-size: 13px; ">- On the Yealink set Rport enabled (Click Accounts, Advanced, set Rport drop down to enabled)</span></div><div><span class="Apple-style-span" style="font-family: Tahoma, Verdana, sans-serif; font-size: 13px; "><br></span></div><div><font class="Apple-style-span" face="Tahoma, Verdana, sans-serif"><span class="Apple-style-span" style="font-size: 13px;">I find this works 99% of the time. &nbsp;When I look at my registrations from a Yealink the contact line is like this:</span></font></div><div><font class="Apple-style-span" face="Tahoma, Verdana, sans-serif"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="Apple-style-span" face="Tahoma, Verdana, sans-serif"><span class="Apple-style-span" style="font-size: 13px;">"John" &lt;<a href="sip:1001@192.168.15.6:5062;received=PUBLIC_IP:1032;fs_nat=yes;fs_path=sip%3A1001%40">sip:1001@192.168.15.6:5062;received=PUBLIC_IP:1032;fs_nat=yes;fs_path=sip%3A1001%40</a></span></font>&nbsp;<span class="Apple-style-span" style="font-family: Tahoma, Verdana, sans-serif; font-size: 13px; ">PUBLIC_IP</span><span class="Apple-style-span" style="font-family: Tahoma, Verdana, sans-serif; font-size: 13px; ">%3A1032&gt;</span></div><div><br></div><div>Ash.</div><div><br></div><br><div><div>On 07/06/2012, at 2:28 AM, Brian Foster wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>The issue is more likely the phone, as the phone is responsible for handing FS the correct IP. There is however a way to force this on the FS side but may break other devices. Please take a look at NDLB (No Device Left Behind) parameters for Sofia on the wiki.</p><p>Brian Foster<br>
Endigo Computer LLC</p><p>Sent from a mobile device.</p>
<div class="gmail_quote">On Jun 6, 2012 12:15 PM, "Carlo Dimaggio" &lt;<a href="mailto:jaasmailing@gmail.com">jaasmailing@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <font size="-1"><font face="Arial">Hi all,<br>
        <br>
        I have a problem with RTP and NAT.<br>
        The scenario is Hosted PBX and Natted phones (yealink):<br>
        <br>
        Phones (192.168.0.x) - NAT -&gt; FS (public IP) <br>
        <br>
        When I call FS (for example an IVR) from a Phone, FS send the
        RTP to the private address (192.168.0.x) instead to the public
        NAT IP.<br>
        The registration is ok:<br>
        <br>
        freeswitch@internal&gt; sofia status profile
        <a href="http://tenant1.bs.dev.voip.clio.it/" target="_blank">tenant1.bs.dev.voip.clio.it</a> reg<br>
        1<br>
        Registrations:<br>
=================================================================================================<br>
        Call-ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:488014850@192.168.0.100" target="_blank">488014850@192.168.0.100</a><br>
        User:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:202@tenant1.test.com" target="_blank">202@tenant1.test.com</a><br>
        Contact:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Test 202"
&lt;<a>sip:202@192.168.0.100:5062;fs_nat=yes;fs_path=sip%3A202%40</a>&lt;NAT_IP&gt;%3A37710&gt;<br>
        Agent:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yealink SIP-T20P 9.61.0.70<br>
        Status:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Registered(UDP-NAT)(unknown) EXP(2012-06-06
        19:01:55) EXPSECS(3232)<br>
        Host:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost.localdomain<br>
        IP:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;NAT_IP&gt;<br>
        Port:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 37710<br>
        Auth-User:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 202<br>
        Auth-Realm:&nbsp;&nbsp;&nbsp;&nbsp; </font></font><font size="-1"><font face="Arial"><a href="http://tenant1.test.com/" target="_blank">tenant1.test.com</a></font></font><br>
    <font size="-1"><font face="Arial">MWI-Account:&nbsp;&nbsp;&nbsp; 202@</font></font><font size="-1"><font face="Arial"><a href="http://tenant1.test.com/" target="_blank">tenant1.test.com</a><br>
        <br>
        <br>
        How I can tell FS to send the RTP Packets to the right address?
        I think is needed a "comedia mode" like in Asterisk (or RTPProxy
        in openser)...<br>
      </font></font><font size="-1"><font face="Arial"><br>
        <br>
        Best regards,<br>
        <br>
        <br>
      </font></font>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br><div apple-content-edited="true">
<div><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">Regards,</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><b><font color="223D20" face="Helvetica, Arial, Geneva">Ashley Breeden</font></b></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">URL Networks Pty Ltd</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><b>Email:</b></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">&nbsp;</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><a class="moz-txt-link-abbreviated" href="mailto:ash@url.net.au">ash@url.net.au</a></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><b>WWW:</b></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">&nbsp;</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><a href="http://www.url.net.au/">http://www.url.net.au</a></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><b>Phone:</b></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">&nbsp;</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">1300 33 11 78</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><b>Direct:</b></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">&nbsp;</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">03 9008 5901</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><b>Mobile:</b></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">&nbsp;</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; ">0411 112 056</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><br></span><span class="Apple-style-span" style="font-family: Helvetica, Arial, Geneva; "><b><i><font color="B7CA78">HostedPBX - VoIP - Hosting - Wholesale</font></i></b></span></div>
</div>
<br></body></html>