<div style="font-family: Arial; font-size: 14px;">Hey All</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">I am trying to get my UAC to register to opensips using auth_db</div><div style="font-family: Arial; font-size: 14px;">but i keep getting unathorised, and what i can see is the contact is showing the extension and the phone local ip</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">any ideas what im missing?</div><div style="font-family: Arial; font-size: 14px;">here is the config</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><span>modparam("auth_db", "db_url", "mysql://xxxx:xxx@172.17.0.3/opensips")</span><div><span>modparam("auth_db", "user_column", "username")</span></div><div><span>modparam("auth_db", "password_column", "password")</span></div><div><span>modparam("auth_db", "calculate_ha1", 1)</span></div><div><span>modparam("auth_db", "use_domain", 1)</span></div><div><span>modparam("auth_db", "domain_column", "domain")</span></div><div><span>modparam("auth_db", "uri_domain_column", "domain")</span></div><div><span>modparam("auth_db", "uri_user_column", "username")</span></div><div><span>modparam("auth_db", "load_credentials", "$avp(13)=rpid;email_address")</span></div><div><span><br></span></div><div><span><br></span></div><div><span><span>if (is_method("REGISTER")) {</span><div><span>        if (!www_authorize("<a target="_blank" rel="noreferrer nofollow noopener" href="http://sip.sipalto.com">sip.xxx.com</a>", "subscriber"))</span></div><div><span>          {</span></div><div><span>        if (!www_authorize("<a target="_blank" rel="noreferrer nofollow noopener" href="http://sip.sipalto.com">sip.xxx.com</a>", "subscriber"))</span></div><div><span>        www_challenge("", "auth");</span></div><div><span>    exit;</span></div><div><span>  }</span></div><div><span>if (!proxy_authorize("", "subscriber"))</span></div><div><span>        proxy_challenge("", "auth");</span></div><div><span>#if (!db_is_from_authorized("uri")) {</span></div><div><span>if (!db_does_uri_exist($ru, "subscriber")) {</span></div><div><br></div><div><span>xlog("User $tu is not authorized to authenticate with $au credential\n");</span></div><div><br></div><div><span>    sl_send_reply(403,"Forbidden auth ID");</span></div><div><span>   exit;</span></div><div><span>  }</span></div><span></span><br></span></div><span></span><br></div><div class="protonmail_signature_block" style="font-family: Arial; font-size: 14px;">
</div>