[Freeswitch-users] RTP NAT issue

Ashley Breeden ash at url.net.au
Thu Jun 7 06:32:12 MSD 2012


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 at 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 at 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 at internal> sofia status profile tenant1.bs.dev.voip.clio.it reg
> 1
> Registrations:
> =================================================================================================
> Call-ID:        488014850 at 192.168.0.100
> User:           202 at tenant1.test.com
> Contact:        "Test 202" <sip:202 at 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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.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 at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120607/a8f50286/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list