<div dir="ltr">Hi!<div>When I try to authenticate my users, I get this error message:Registration error: 401-Unauthorized.</div><div>in my opensips.cfg </div><div><div>loadmodule "db_mysql.so"</div><div>loadmodule "auth.so"</div>
<div>loadmodule "auth_db.so"</div><div>modparam("usrloc", "db_mode", 2)</div><div>modparam("usrloc", "db_url",</div><div> "mysql://opensips:opensipsrw@localhost/opensips")</div>
<div>modparam("auth_db", "calculate_ha1", yes)</div><div>modparam("auth_db", "password_column", "password")</div><div>modparam("auth_db", "db_url",</div>
<div> "mysql://opensips:opensipsrw@localhost/opensips")</div><div>modparam("auth_db", "load_credentials", "")</div><div>if (!(method=="REGISTER") && from_uri==myself) /*no multidomain version*/</div>
<div>{</div><div> if (!proxy_authorize("", "subscriber")) {</div><div> proxy_challenge("", "0");</div><div> exit;</div><div> }</div><div> if (!db_check_from()) {</div><div> sl_send_reply("403","Forbidden auth ID");</div>
<div>exit;</div><div><br></div><div><br></div><div><br></div><div>}</div><div><br></div><div>consume_credentials();</div><div><br></div><div>}</div><div><br></div><div>if (!www_authorize("", "subscriber"))</div>
<div>{</div><div>www_challenge("", "0");</div><div>exit;</div><div>}</div><div><br></div><div>if (!db_check_to())</div><div>{</div><div> sl_send_reply("403","Forbidden auth ID");</div>
<div>exit;</div><div>}</div><div><br></div></div><div>I user opensipsctl add 1000 1000 to add user.</div><div>What is strange, is that opensipsctl ping can ping any name, even users not added</div><div>an any one help, please :)</div>
</div>