<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><br>
</p>
<p>Dear OpenSIPS-Users.</p>
<p><br>
</p>
<p>I have studied the fundamentals about my questions, reading RFC 3261 (topics 16.4 and 16.12) and then I have just figured out what is the problem.</p>
<p><br>
</p>
<p>My OpenSISP is behind a NAT, so it knows its local IP, but it doesn't know its public IP. When this OpenSIPS receives a SIP REGISTER, such request has the public IP in its Route header. In this case, the OpenSIPS tries to forward the request to the "next
proxy", as if such IP was of a valid outbound proxy. When the forwarded message reach the NAT, it come back to the OpenSIPS. This is a kind of loop that run until the proxy rises the "too many hops" error.</p>
<p><br>
</p>
<p>To solve this issue, I have to implement one of the following ideas, if possible:</p>
<p><br>
</p>
<p>- Fix the Route header, substituting the public IP with the local IP.</p>
<p><br>
</p>
<p>or <br>
</p>
<p><br>
</p>
<p>- Tell to the OpenSIPS, via opensips.cfg file, that he is always the last server that has to receive the SIP requests and not forward SIP REGISTER.</p>
<p><br>
</p>
<p>I will read the OpenSIPS documentation, specially the NATHELPER module, to see if one of these ideas is possible.</p>
<p><br>
</p>
<p>Any comment from someone will be very helpful!! I still have to find a direction.</p>
<p><br>
</p>
<p>Best regards.</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: +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 Rodrigo Pimenta Carvalho <pimenta@inatel.br><br>
<b>Enviado:</b> segunda-feira, 7 de dezembro de 2015 17:26<br>
<b>Para:</b> users@lists.opensips.org<br>
<b>Assunto:</b> [OpenSIPS-Users] Preload Route denied for SIP REGISTER. Why should I use an alias? What is the fundamentals behind it?</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Dear OpenSIPS-users.</p>
<p><br>
</p>
<p>I'm working with OpenSIPS and softphones successfully, since some months ago. All my softphones can register on OpenSIPS very well.</p>
<p>All was ok while this SIP proxy and the softphones was all running in the same local network.</p>
<p><br>
</p>
<p>Today, I have just created a new isolated network and I put my OpenSIPS there. That is, now my OpenSIPS is behind a NAT from the point of view of all softphones. In this case, when a softphone tries to register on OpenSIPS, it get the answer: "Status: 403
Preload Route denied".</p>
<p><br>
</p>
<p>I have studied about this issue today (RR Module) including the answer found here:
<a title="Ctrl+Clique ou toque para seguir o link" id="LPlnk788339" href="http://comments.gmane.org/gmane.comp.voip.opensips.user/24120">
http://comments.gmane.org/gmane.comp.voip.opensips.user/24120</a> .</p>
<p><br>
</p>
<p>According to that answer I could comment, in opensips.cfg file, the part that uses the function loose_route(). However it caused the "too many hops" problem.
<br>
</p>
<p><br>
</p>
<p>Then, after reading more discussions, I have put an alias in my OpenSIPS.cfg script. It solved the issue, but I'm not sure if it is a good solution.</p>
<p><br>
</p>
<p>Could someone explain a bit about the issue I'm dealing with, please? I'm missing some fundamentals here, for sure. What could be an alternative solution?
<br>
</p>
<p><br>
</p>
<p>Is there some way of "fixing" some header in the SIP REGISTER request, by means of OpenSIPS, so that it could accept the SIP REGISTER without issues?</p>
<p><br>
</p>
<p>Any hint will be very helpful!!</p>
<p>Thanks alot!<br>
</p>
<p><br>
<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>
</div>
</div>
</div>
</div>
</body>
</html>