[OpenSIPS-Users] Registration error:401-Unauthorized

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Mar 29 17:35:24 CEST 2012


Hi

and after you client receives the 401, does it generate a new request 
with the credentials ?

Regards,
Bogdan


On 03/29/2012 02:08 PM, azza miled wrote:
> 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 :)
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120329/2b110859/attachment.htm>


More information about the Users mailing list