<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Ben.</p>
<p><br>
</p>
<p>Thank you very much!</p>
<p>A person in my team is already dealing with ICE and STUN. So, that will be the right thing do to.</p>
<p>I was just curious about a function that can fix contact info but do nothing about RTP ports in SDP.</p>
<p>I understood that my case will not be solved with such function , but only with ICE and STUN.
<br>
</p>
<p><br>
</p>
<p>Best regards.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> users-bounces@lists.opensips.org &lt;users-bounces@lists.opensips.org&gt; em nome de Newlin, Ben &lt;Ben.Newlin@inin.com&gt;<br>
<b>Enviado:</b> sexta-feira, 5 de fevereiro de 2016 17:23<br>
<b>Para:</b> OpenSIPS users mailling list<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] How to fix contact info and RTP port in SDP? Is fix_nated_sdp function enough?</font>
<div>&nbsp;</div>
</div>
<div>
<div>
<div>
<div>Rodrigo,</div>
<div><br>
</div>
<div>What port should the module change it to? Until you receive RTP from the endpoint, there is no way to know what the correct RTP port is. It would require support on the endpoints to detect the RTP source port once RTP has been received. Most clients do
 not implement this, so direct media in the presence of NAT is not usually possible without other, external protocols like STUN.</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div><br>
</div>
<div>Ben Newlin</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>&gt; on behalf of Rodrigo Pimenta Carvalho &lt;<a href="mailto:pimenta@inatel.br">pimenta@inatel.br</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>OpenSIPS users mailling list &lt;<a title="Ctrl&#43;Clique ou toque para seguir o link" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Friday, February 5, 2016 at 2:16 PM<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&quot; &lt;<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[OpenSIPS-Users] How to fix contact info and RTP port in SDP? Is fix_nated_sdp function enough?<br>
</div>
<div><br>
</div>
<div>
<div dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear OpenSIPS-users,</p>
<p><br>
</p>
<p>Two clients of my OpenSIPS are located behind different NATs and I have just started to search a way to mangles the SDP messages for both of them in a way that will make the parties talk directly with each other (direct media). After reading the proxy documentation
 (modules NATHELPER, STUN, MEDIAPROXY and NAT_TRAVERSAL) I have found the function
<font color="#006fc9"></font><i><font color="#006fc9">fix_nated_sdp</font></i>. <br>
</p>
<p><br>
</p>
<p>However, it seems that such function&nbsp;replaces the original contact IP, but not the RTP ports.</p>
<p>So I ask: what is the utility of the function <i><font color="#006fc9">fix_nated_sdp,<font color="#000000"></font></font></i><font color="#006fc9"><font color="#000000"> if it fixes the contact info, but not the port? I mean, how can I fix the SDP in a way
 that contact info and RTP port will be valid to send media to a peer that is behind a NAT?</font></font></p>
<p><font color="#006fc9"><font color="#000000"><br>
</font></font></p>
<p><font color="#006fc9"><font color="#000000">Any hint will be very very helpful!!</font></font></p>
<p><font color="#006fc9"><font color="#000000"><br>
</font></font></p>
<p>Best regards.<br>
</p>
<p><br>
</p>
<p><br>
</p>
RODRIGO PIMENTA CARVALHO<br>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</div>
</div>
</body>
</html>