<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>In my OpenSIPS, I have created the following configurations:</p>
<p><br>
</p>
<p>In opensipsctlrc file</p>
<p>================</p>
<p>SIP_DOMAIN=localhost</p>
<p>STORE_PLAINTEXT_PW=0<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>In OpenSIPS config file</p>
<p>===================</p>
<p>#### AUTHentication modules<br>
loadmodule &quot;auth.so&quot;<br>
loadmodule &quot;auth_db.so&quot;<br>
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, 0)<br>
</p>
<p>modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;ha1&quot;)</p>
<p><br>
</p>
<p><br>
</p>
<p>I intend to avoid password as plain text be recorded in the database.</p>
<p>I also intend to let OpenSIPS run and works, in different domains. That is, my configuration should works for different IP addresses. That is why I use 'SIP_DOMAIN=localhost'. So, every time a new user is added to the Registrar, a wrong IP address will not
 appear in the database.</p>
<p><br>
</p>
<p>However, this configuration does not allow an UAC register and be online.&nbsp; The UAC gets unauthorized (401) as response. I guess this is due to the fact that ha1 is calculated using 'localhost' and the UAC tries to register using an IP address. So, I suspect
 that OpenSIPs is comparing the domain gotten form ha1 and gotten from the SIP Register message. How to solve this problem?</p>
<p><br>
</p>
<p>How to make OpenSIPS ignore the domain specified by the UAC, for SIP REGISTER?</p>
<p>What I need is to make OpenSIPS consider just login and password to accept a register. Is it possible?</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Thanks a lot.</p>
<p><br>
</p>
<p></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>
</div>
</body>
</html>