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 clear="all"><br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>