<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head><meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
<style>BODY{font:10pt Tahoma, Verdana, sans-serif}</style></head><body>
<DIV>Sorry for the long delay, but here's your answer:</DIV>
<DIV>&nbsp;</DIV>
<DIV>It's going to go to the address in the un-altered VIA header, unless RPORT gets sent it the VIA. If you have agressive_nat_detection turned on, and the client puts RPORT in the via, it will work fine. If you have a broken device that won't do it, then set the variable "NDLB-connectile-dysfunction=true" in the users directory enter (XML) or other, what ever you are using. That will cause the contact to be re-written to the transport address from where it came (both ip address and port) and the response will also be sent there.</DIV>
<DIV>&nbsp;</DIV>
<DIV>--Dave</DIV><BR>
<BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<HR>
<B>From:</B> BELint Inc [mailto:belintinc@gmail.com]<BR><B>To:</B> freeswitch-users@lists.freeswitch.org<BR><B>Sent:</B> Thu, 07 Jun 2012 10:56:07 -0700<BR><B>Subject:</B> Re: [Freeswitch-users] Freeswitch is responding to contact's port when client behind NAT<BR><BR>Does any one know its solutions,
<DIV>Guys please help, its urgent. I am even unable to register my phones :-(</DIV>
<DIV><BR></DIV>
<DIV>Regards,<BR><BR>
<DIV class=gmail_quote>On Thu, Jun 7, 2012 at 9:20 AM, BELint Inc <SPAN>&lt;<A href="mailto:belintinc@gmail.com">belintinc@gmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote><SPAN style="FONT-FAMILY: verdana,sans-serif">Hi All,</SPAN><BR style="FONT-FAMILY: verdana,sans-serif"><BR style="FONT-FAMILY: verdana,sans-serif">
<DIV style="FONT-FAMILY: verdana,sans-serif; MARGIN-LEFT: 40px">We`ve been using freeswitch since very long, It was good all over but it got stuck to a simple yet complex situation. We have Yealink T28P series phones behind NAT and freeswitch is unable to get them register. In the scenario freeswitch is at public IP. The reason we think is that freeswitch is using sip port in contact header to respond to.<BR><BR>Is there anyway we can avoid this or force it to always send the response to destination IP instead of contact or via header ports because clients are behind NAT and response can only reach them if it respond to destination IP &amp; PORT.<BR><BR>Please revert if someone know how to solve this problem. It is very urgent.<BR></DIV><BR style="FONT-FAMILY: verdana,sans-serif"><SPAN style="FONT-FAMILY: verdana,sans-serif">Regards</SPAN><SPAN class=HOEnZb><FONT color=#888888><BR style="FONT-FAMILY: verdana,sans-serif"><SPAN style="FONT-FAMILY: verdana,sans-serif">BELint</SPAN><BR></FONT></SPAN></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE>
<STYLE>
</STYLE>

<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></body></html>