<div style="font-family: Arial; font-size: 14px;">anyone have any pointers why uac's wont auth :(</div><div style="font-family: Arial; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial; font-size: 14px;">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</div>
<div class="protonmail_signature_block-proton">
Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
</div>
</div>
<div style="font-family: Arial; font-size: 14px;"><br></div><div class="protonmail_quote">
------- Original Message -------<br>
On Wednesday, January 18th, 2023 at 1:17 PM, nutxase via Users <users@lists.opensips.org> wrote:<br><br>
<blockquote class="protonmail_quote" type="cite">
<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 href="http://sip.sipalto.com" rel="noreferrer nofollow noopener" target="_blank">sip.xxx.com</a>", "subscriber"))</span></div><div><span> {</span></div><div><span> if (!www_authorize("<a href="http://sip.sipalto.com" rel="noreferrer nofollow noopener" target="_blank">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 style="font-family: Arial; font-size: 14px;" class="protonmail_signature_block">
</div>
</blockquote><br>
</div>