[OpenSIPS-Users] Registration error:401-Unauthorized
azza miled
azza.miled at gmail.com
Thu Mar 29 13:08:38 CEST 2012
Hi!
When I try to authenticate my users, I get this error message:Registration
error: 401-Unauthorized.
in my opensips.cfg
loadmodule "db_mysql.so"
loadmodule "auth.so"
loadmodule "auth_db.so"
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips")
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips")
modparam("auth_db", "load_credentials", "")
if (!(method=="REGISTER") && from_uri==myself) /*no multidomain version*/
{
if (!proxy_authorize("", "subscriber")) {
proxy_challenge("", "0");
exit;
}
if (!db_check_from()) {
sl_send_reply("403","Forbidden auth ID");
exit;
}
consume_credentials();
}
if (!www_authorize("", "subscriber"))
{
www_challenge("", "0");
exit;
}
if (!db_check_to())
{
sl_send_reply("403","Forbidden auth ID");
exit;
}
I user opensipsctl add 1000 1000 to add user.
What is strange, is that opensipsctl ping can ping any name, even users not
added
an any one help, please :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120329/df77262a/attachment.htm>
More information about the Users
mailing list