<p></p>
<p>set_contact_alias() should not be used for registrations, but for requests that are typically forwarded. If you do it on an edge proxy between device and registrar server, then you should use path module and leave the contact unchanged.</p>
<p>If you use it in the registrar server config, then you should replace it with fix_nated_register(), like in the default kamailio.cfg.</p>
<p>Otherwise, if you really want to use it, then in case you have to deal with such UA, then yes, you will have to remove (or replace) the alias parameter in Contact. Probably you can play with the replace/subst functions from textops and if you can't get it, then new C code has to be added. A pull request is of course appreciated.</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/2308#issuecomment-623005573">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZON7LH27A7DTKO7ZFDRPR3IRANCNFSM4MTDH5KA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLG2G45EVJHKYRGIDDRPR3IRA5CNFSM4MTDH5KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEURE7BI.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/2308#issuecomment-623005573",
"url": "https://github.com/kamailio/kamailio/issues/2308#issuecomment-623005573",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>