hi Bogdan,<br><br> The issue is solved. the error is not due to code in opensips.cfg . But it is due to the value set for STORE_PLAINTEXT_PW in opensipsctlrc. I had set it to 0 instead of setting it to 1<br><br>Thank You for the help.<br>
<br><div class="gmail_quote">On Sat, Feb 7, 2009 at 1:45 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi ASHWINI,<br>
<br>
please post the configuration of the auth_db module - the modparam("auth_db",.......) .<br>
<br>
Regards,<br>
Bogdan<br>
<br>
ASHWINI NAIDU wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
hi,<br>
<br>
I have installed opensips-1.4.4 on a debian machine. I have changed the configuration file from openser-1.3.4 to opensips 1.4.4 and i have done the corresponding changes. opensips starts but when i try to register a user i can see only "401 UNAUTHORIZED" though the user is added in the subscriber table and the domain is also added in domain table. I am adding the chunk of code that is responsible for registeration . Please let me know if any thing is wrong in the code.<br>
<br>
## Register request handler^M<br>
if (is_uri_host_local()) {^M<br>
if (!www_authorize("", "subscriber")) {^M<br>
log(1,"\n***********AUTHENTICATING\n"); <----------------------------------------- Am able to traverse till here.<br>
www_challenge("", "1");^M<br>
log(1,"\n ********** Challenging failed\n");<br>
exit;^M<br>
};^M<br>
if (!check_to()) {^M<br>
log(1,"\n***************** failed check_to\n");<br>
sl_send_reply("403", "Forbidden");^M<br>
exit;^M<br>
};^M<br>
if(!search("^Contact:[ ]*\*") && nat_uac_test("19")) {^M<br>
log(1,"-------NAT Checking\n");^M<br>
setbflag(6);^M<br>
fix_nated_register();^M<br>
force_rport();^M<br>
};^M<br>
save("location");^M<br>
exit;^M<br>
} else if {^M<br>
log(1,"\n******************I AM NOT ALLOWED\n");<br>
sl_send_reply("403", "Forbidden");^M<br>
};^M<br>
<br>
<br>
-- <br>
Thanking You,<br>
Ashwini BR Naidu<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>