<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.</p>
<p><br>
</p>
<p>It sounds good for who is using rtpproxy. In our case we are using direct media without rtpproxy.</p>
<p><br>
</p>
<p>As long as our OpenSIPS will be behind a NAT and such NAT is a gateway, we have decided to do the following:</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><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: +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" face="Calibri, sans-serif" color="#000000"><b>De:</b> users-bounces@lists.opensips.org <users-bounces@lists.opensips.org> em nome de Johan De Clercq <johan@democon.be><br>
<b>Enviado:</b> quarta-feira, 27 de julho de 2016 11:57<br>
<b>Para:</b> OpenSIPS users mailling list<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] OpenSIPS is behind a NAT, not the UAC. What to do?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>in the startup route, you should find your pub ip using curl. <br>
</div>
<div>Put that in a var and then use that var in rtpproxy. <br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-07-27 15:07 GMT+02:00 Rodrigo Pimenta Carvalho <span dir="ltr">
<<a href="mailto:pimenta@inatel.br" target="_blank">pimenta@inatel.br</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div 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><br>
</p>
<p>The function <span>nat_uac_test</span>() (from module NATHELPER) works very well and tells me whether a cliente to my OpenSIPS is behind a NAT.</p>
<p><br>
</p>
<p>But, for my specific network topology, is my OpenSIPS that is behind a NAT, from the client perspective. In this case I have to fix the SDP content that goes from OpenSIPS to the client, so that the client will be able to send its media to a public IP, when
communicating to a peer in the same network domain of this SIP server.</p>
<p><br>
</p>
<p>How can I be sure that for a client perspective the OpenSIPS is behind a NAT? In another words, is there a way to the OpenSIPS determine if its client is in the same network or in a remote network?</p>
<p><br>
</p>
<p>--------------</p>
<p><br>
</p>
<p>P.S. I suspect that OpenSIPS should be used in a node with public IP to simplify our solution. But our customer asked us to put OpenSIPS in a residential device that will be always behind a NAT for some smartphones perspective and not behind a NAT for another
home devices perspective.</p>
<p><br>
</p>
<p><br>
---------------</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Best regards.</p>
<span class="HOEnZb"><font color="#888888">
<p><br>
</p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="+553534719200" target="_blank">
+55 35 3471 9200</a> RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</font></span></div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>