<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That's called rtp auto adjust.<div>The SIP server will not trust what it's in the SDP, but the real ip/source of the RTP flow coming to its own RTP port.</div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone &nbsp;</font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: &nbsp; 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space">&nbsp;</span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); ">&nbsp; -&nbsp; &nbsp;<span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>Le 27/07/2011 à 01:58, Narendra Sirugudi a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>David,</div>
<div>Thanks for your reply.</div>
<div>&nbsp;</div>
<div>rfc 3581 is indeed helpful.</div>
<div>&nbsp;</div>
<div>If my understanding is correct, this helps the SIP UA client to learn the SIP session port as seen by the SIP server.</div>
<div>&nbsp;</div>
<div>But i think this does not solve the issue of RTP IP and port in the SDP, unless i am missing something.</div>
<div>&nbsp;</div>
<div>The basic issue with SIP UA client sitting behind a NAT server is that the SDP in the INVITE from the SIP UA, will contain the private IP &amp; port of the SIP UA. At best the SIP server can assume that the RTP IP will be the source IP address seen on the IP header of the INVITE. But how to get the SIP UA client's NATTED RTP port?</div>

<div>&nbsp;</div>
<div>A public STUN server does solve this issue, wherein the client first queries the STUN server to learn the natted RTP IP and port seen by the STUN server. Many SIP UA clients (softphones) seem to have the support for STUN, but STUN does not work with symmetric NAT. TURN, ICE are the suggested solutions. But i&nbsp;am&nbsp;yet to see any SIP UA clients having TURN, ICE support. One can&nbsp;definitely say that most SIP UA clients currently do not have TURN/ICE support. Moreover TURN/ICE might have latency issues.</div>

<div>&nbsp;</div>
<div>Hence one tends to still look at SIP server based solutions. </div>
<div>&nbsp;</div>
<div>Please do get back with your thoughts. Its possible that i am missing something.</div>
<div>&nbsp;</div>
<div>thanks,</div>
<div>--naren</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div class="gmail_quote">On Tue, Jul 26, 2011 at 10:07 PM, David Ponzone <span dir="ltr">&lt;<a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="WORD-WRAP: break-word">More precisely, FreeSWITCH does not have any issues to handle a remote endpoint behind NAT if the endpoint correctly sets the rport parameter in the Via field (RFC3581). 
<div>In case the endpoint does not, FreeSWITCH can force rport, meaning it will answer to the endpoint as if rport was set.</div>
<div>This mechanism does not have anything to do with STUN/ICE or other external mechanism and it works perfectly.</div>
<div><br>
<div>
<div><span style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 14px Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"><span style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 14px Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">
<div style="WORD-WRAP: break-word">
<div><font face="'Helvetica Neue'"><font color="#1c00ff">David Ponzone &nbsp;</font><font color="#000000" size="3"><span style="FONT-SIZE: 12px">Direction Technique</span></font></font></div>
<div><font face="'Helvetica Neue'"><font size="3"><span style="FONT-SIZE: 13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div>
<div><font face="'Helvetica Neue'"><font size="3"><span style="FONT-SIZE: 13px">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div>
<div><font face="'Helvetica Neue'"><font size="3"><span style="FONT-SIZE: 13px">gsm: &nbsp; 06 66 98 76 34</span></font></font></div>
<div><font face="'Helvetica Neue'"><br></font></div>
<div><font color="#1c00ff" face="'Helvetica Neue'">Service Client<span>&nbsp;</span></font><font face="'Helvetica Neue'"><font color="#ff0000">IP</font></font><font color="#1c00ff" face="'Helvetica Neue'">eva</font></div>

<div><font color="#1c00ff" face="'Helvetica Neue'"><span style="FONT-FAMILY: Helvetica; COLOR: rgb(0,0,0)">
<div><font face="'Helvetica Neue'"><font size="3"><span style="FONT-SIZE: 13px">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div>
<div><font size="3" face="'Helvetica Neue'"><span style="FONT-SIZE: 13px">
<div style="MARGIN: 0px; COLOR: rgb(0,34,243)"><span style="TEXT-DECORATION: underline"><a>www.ipeva.fr</a></span><span style="COLOR: rgb(101,104,149)">&nbsp; -&nbsp; &nbsp;<span style="COLOR: rgb(0,34,243); TEXT-DECORATION: underline"><a>www.ipeva-studio.com</a></span></span></div>

<div style="MARGIN: 0px; COLOR: rgb(0,34,243)"><span style="TEXT-DECORATION: underline"><br></span></div>
<div style="MARGIN: 0px; COLOR: rgb(0,34,243)"><span>
<div style="TEXT-ALIGN: justify; MARGIN: 0px; COLOR: rgb(192,192,192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div>

<div style="TEXT-ALIGN: justify; TEXT-DECORATION: underline"><font color="#c0c0c0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></span><br></div><br>
<div>
<div>Le 26/07/2011 à 07:23, curriegrad2004 a écrit :</div>
<div>
<div></div>
<div class="h5"><br>
<blockquote type="cite">
<div>In this case there's nothing I can think of that FreeSWITCH can do in<br>this case if the remote endpoint doesn't support NAT at all.<br><br>You may want to try the nf_nat_sip module at the remote end, but it<br>
may not be the solution you're looking for<br><br>On Mon, Jul 25, 2011 at 8:48 PM, Narendra Sirugudi &lt;<a href="mailto:nsirugudi@gmail.com" target="_blank">nsirugudi@gmail.com</a>&gt; wrote:<br>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">Hi,<br></blockquote>
<blockquote type="cite">Thanks for your reply.<br></blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">Maybe my problem definition is not fully clear:<br></blockquote>
<blockquote type="cite">For my use case, having addtional configuration on the SIP UA (softphone)<br></blockquote>
<blockquote type="cite">side is not feasible. I am looking for solution on the Freeswitch<br></blockquote>
<blockquote type="cite">side(sitting on the public network). Not all SIP UA clients&nbsp;(softphones)<br></blockquote>
<blockquote type="cite">will have the solution of working around NAT, let alone STUN client support.<br></blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">I observed the Freeswitch has some features like AutoNAT etc. Aren't these<br></blockquote>
<blockquote type="cite">of any help for the use case i have ? I just started reading on the AutoNAT<br></blockquote>
<blockquote type="cite">feature. The documentation of AutoNAT seems to suggest that freeswitch<br></blockquote>
<blockquote type="cite">itself sits behind a NAT. This is not the same as my use case.<br></blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">To summarize: Does freeswitch have any method of detecting that the remote<br></blockquote>
<blockquote type="cite">SIP UA is behind a NAT and taking some action based on that ?<br></blockquote>
<blockquote type="cite">Any suggestions are welcome.<br></blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">thanks,<br></blockquote>
<blockquote type="cite">--naren<br></blockquote>
<blockquote type="cite">On Tue, Jul 26, 2011 at 7:09 AM, curriegrad2004 &lt;<a href="mailto:curriegrad2004@gmail.com" target="_blank">curriegrad2004@gmail.com</a>&gt;<br></blockquote>
<blockquote type="cite">wrote:<br></blockquote>
<blockquote type="cite">
<blockquote type="cite"><br></blockquote></blockquote>
<blockquote type="cite">
<blockquote type="cite">The SIP UA only needs to be configured to use NAT in this case. The FS<br></blockquote></blockquote>
<blockquote type="cite">
<blockquote type="cite">Server does not need any configuration in this case.<br></blockquote></blockquote>
<blockquote type="cite">
<blockquote type="cite"><br></blockquote></blockquote>
<blockquote type="cite">
<blockquote type="cite"><br></blockquote></blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">_______________________________________________<br></blockquote>
<blockquote type="cite">Join us at ClueCon 2011, Aug 9-11, Chicago<br></blockquote>
<blockquote type="cite"><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br></blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote>
<blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br></blockquote>
<blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></blockquote>
<blockquote type="cite">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br></blockquote>
<blockquote type="cite"><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br></blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite"><br></blockquote><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></blockquote></div></div></div><br></div></div></div><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE<br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><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></body></html>