Hi,
The www_authorize() function has a return code which indicates why the
auht failed. Print the return code to see what's going on.
<snap>
$var(ret) = www_authorize("","0");
xlog("auth ret code = $var(ret) \n");
if ($var(ret)<0) {
www_challenge()
exit;
}
<snap>
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 17.07.2014 10:16, Aqs Younas wrote:
I had successfully install Opensips and configured mysql DB with it. Now
Opensips up and running. I add sip account to mysql DB as follows.
mysql> select * from subscriber;
+----+----------+---------------+----------+---------------+----------------------------------+----------------------------------+------+
| id | username | domain | password | email_address | ha1
| ha1b | rpid |
+----+----------+---------------+----------+---------------+----------------------------------+----------------------------------+------+
| 1 | 1000 | 192.170.70.29 | 12345 | |
d59df94dbda4290385f6f85ddeac3aca | 854442095be5a00fa4306b3d74d14f93 | NULL |
+----+----------+---------------+----------+---------------+----------------------------------+----------------------------------+------+
mysql> select * from domain;
+----+---------------+---------------------+
| id | domain | last_modified |
+----+---------------+---------------------+
| 1 | 192.170.70.29 | 2014-07-17 11:35:24 |
+----+---------------+---------------------+
opensips is running at
udp 0 0192.170.70.29:5060 <http://192.170.70.29:5060>
0.0.0.0:* 1778/opensips
And my x-lite phone is running at 192.170.70.3.
when i try to register my x-lite phone with opensips it gives this error
"Try server returned ..unauthorized (401)
syslog file gives.
Jul 17 12:06:12 kick ./opensips[1782]: [udp:[email protected]:4995
<http://udp:[email protected]:4995>]: Processing 'REGISTER'
why i am getting this error?Am i doing something wrong?
Please Help.
Thanks
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users