<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
it is probably related to the calculate_ha1 modparam in opensips.cfg
(default is 0) .<br>
<br>
The database entry you showed to us, had no ha1/ha1b entries and if
calculate_ha1 is set to 0 the authentification will not work because
there is only a clear-text password in the db.<br>
<br>
<br>
Best Regards<br>
<br>
Max M.<br>
<br>
<br>
Am 27.09.2011 09:26, schrieb yasiru welandawe:
<blockquote
cite="mid:1317108398.88126.YahooMailNeo@web39508.mail.mud.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:lucida
console, sans-serif;font-size:10pt">
<div style="font-family: 'lucida console', sans-serif;
font-size: 10pt; "><br>
</div>
<div>
<div style="font-size: 12pt; font-family: 'times new roman',
'new york', times, serif; ">Hi all,</div>
<div style="font-family: 'times new roman', 'new york', times,
serif; font-size: 12pt; "
class="yui_3_2_0_15_131710664663466"><br>
</div>
<div style="font-family: 'times new roman', 'new york', times,
serif; font-size: 12pt; "
class="yui_3_2_0_15_131710664663466">I had successfully
install Opensips 1.7.0 and configured mysql DB with it. Now
Opensips up and running. I add sip account to mysql DB as
follows.</div>
<div style="font-family: 'times new roman', 'new york', times,
serif; font-size: 12pt; "
class="yui_3_2_0_15_131710664663466"><br>
</div>
<div class="yui_3_2_0_15_131710664663466">
<div class="yui_3_2_0_15_131710664663466"><font
class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif">mysql> select * from
subscriber;</font></div>
<div class="yui_3_2_0_15_131710664663466"><font
class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif">+----+----------+----------------+----------+------------------+-----+------+------+</font></div>
<div class="yui_3_2_0_15_131710664663466"><font
class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif">| id | username | domain
| password | email_address | ha1 | ha1b |
rpid |</font></div>
<div class="yui_3_2_0_15_131710664663466"><font
class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif">+----+----------+----------------+----------+------------------+-----+------+------+</font></div>
<div class="yui_3_2_0_15_131710664663466"><font
class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif">| 1 | 1000 |
192.168.102.24 | 1000 | <a class="moz-txt-link-abbreviated" href="mailto:modygw@yahoo.com">modygw@yahoo.com</a> | |
| |</font></div>
<div class="yui_3_2_0_15_131710664663466"><font
class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif">+----+----------+----------------+----------+------------------+-----+------+------+</font></div>
<div class="yui_3_2_0_15_131710664663466"><font
class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif">1 row in set (0.02 sec)</font></div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; "><br>
</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; "><br>
</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; ">But it gives "SIP/2.0 401
Unauthorized." when I try to register my soft phone with
this account. Can someone help me.</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; "><br>
</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; "><br>
</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; ">Thank you,</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; ">--</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; ">Yasiru</div>
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt; "><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
42com Telecommunication GmbH
Straße der Pariser Kommune 12-16 / D-10243 Berlin
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:mm@42com.com">mm@42com.com</a>
Homepage: <a class="moz-txt-link-abbreviated" href="http://www.42com.com">www.42com.com</a>
Firmenangaben/Company information:
Handelsregister/Commercial register: Amtsgericht Berlin HRB 99071 B
Umsatzsteuer-ID/VAT-ID: DE223812306, Geschäftsführer/CEO: Thomas Reinig, Alexander Reinig
Diese E-Mail enthält Informationen von 42com Telecommunication GmbH. Diese sind möglicherweise vertraulich und ausschließlich für den Adressaten bestimmt. Sollten Sie diese elektronische Nachricht irrtümlicherweise erhalten haben, so informieren Sie uns bitte unverzüglich telefonisch oder per E-Mail.
This message is intended only for the use of the individual or entity to
which it is addressed. If you have received this message in error, please delete the message and notify us immediately.</pre>
</body>
</html>