Check WWW-Authorize header, you are probably a victim of stale nonce. Some clients try to register multiple contacts using same nonce over time.<div><br></div><div>Also check subscriber table opensips db and see in what format your passwords are actually stored for existing users, and then set calculate ha1 hash module parameter appropriately. Don't specify password column unless you have custom db schema for subscribers table.</div>
<div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Tue, Nov 20, 2012 at 6:01 PM, Christian Cambier <span dir="ltr"><<a href="mailto:cca@voxtron.com" target="_blank">cca@voxtron.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hello.<br>
<br>
Upon registering a UAC I keep on getting a "<span style="background:white;font-size:13.5pt;font-family:"Courier New"">SIP/2.0 401 Unauthorized</span>"
<br>
The SIP challenge-response is being executed but I assume there's still an
issue with plain/hashed passwords<br>
<br>
In the cfg I specify<br>
modparam("auth_db", "calculate_ha1", 0)<u></u><u></u></p>
<p class="MsoNormal"> modparam("auth_db",
"password_column", "ha1")<u></u><u></u></p>
<p class="MsoNormal"><br>
In /etc/opensips/opensipsctlrc I have changed setting <br>
store_plaintext_pw=1<br>
to <br>
store_plaintext_pw=0<br>
<br>
<u></u><u></u></p>
<p class="MsoNormal">Apart from <br>
service opensips restart<br>
do I have to restart anything else or specify another setting somewhere?<br>
<br>
thx<br>
Chris<br>
<br>
<u></u><u></u></p>
</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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>