<p></p>
<pre><code>if (alias_db_lookup("DbAliases")) {
   # alias found / r-uri changed
} else {
   # not found
}
</code></pre>
<p>You could also use case or other methods as well... but in essence you're setting the $vn(alias_found) to the value... so there will be a value in most cases... positive or negative.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2517#issuecomment-712385906">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNV4PVVYOQ3NDJXU73SLSFZFANCNFSM4SWQJ5GA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNRWBY4BJ27HWKNBX3SLSFZFA5CNFSM4SWQJ5GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFJ3CK4Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2517#issuecomment-712385906",
"url": "https://github.com/kamailio/kamailio/issues/2517#issuecomment-712385906",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>