Try this:

- Enable agressive_nat_detection on the profile as per Dave's suggestion
- Make sure SIP ALG is not enabled on the NAT router
- On the Yealink set Rport enabled (Click Accounts, Advanced, set Rport drop down to enabled)

I find this works 99% of the time.  When I look at my registrations from a Yealink the contact line is like this:

"John" <sip:1001@192.168.15.6:5062;received=PUBLIC_IP:1032;fs_nat=yes;fs_path=sip%3A1001%40 PUBLIC_IP%3A1032>

Ash.


On 07/06/2012, at 2:28 AM, Brian Foster wrote:

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.

Brian Foster
Endigo Computer LLC

Sent from a mobile device.

On Jun 6, 2012 12:15 PM, "Carlo Dimaggio" <jaasmailing@gmail.com> wrote:
Hi all,

I have a problem with RTP and NAT.
The scenario is Hosted PBX and Natted phones (yealink):

Phones (192.168.0.x) - NAT -> FS (public IP)

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.
The registration is ok:

freeswitch@internal> sofia status profile tenant1.bs.dev.voip.clio.it reg
1
Registrations:
=================================================================================================
Call-ID:        488014850@192.168.0.100
User:           202@tenant1.test.com
Contact:        "Test 202" <sip:202@192.168.0.100:5062;fs_nat=yes;fs_path=sip%3A202%40<NAT_IP>%3A37710>
Agent:          Yealink SIP-T20P 9.61.0.70
Status:         Registered(UDP-NAT)(unknown) EXP(2012-06-06 19:01:55) EXPSECS(3232)
Host:           localhost.localdomain
IP:             <NAT_IP>
Port:           37710
Auth-User:      202
Auth-Realm:    
tenant1.test.com
MWI-Account:    202@tenant1.test.com


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)...


Best regards,



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Regards,

Ashley Breeden
URL Networks Pty Ltd
Email: ash@url.net.au
WWW: http://www.url.net.au
Phone: 1300 33 11 78
Direct: 03 9008 5901
Mobile: 0411 112 056

HostedPBX - VoIP - Hosting - Wholesale