<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/mtryfoss/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mtryfoss">@mtryfoss</a> - the set_contact_alias() is indeed for use instead of fix_nated_contact(). But fix_nated_contact() is not for REGISTER, for it the fix_nated_register() should be used. However, fix_nated_register() has to be used only if the registrar server is next to the nat router. If registrar is behind an edge proxy (SBC), the it should work without touching the contact and using the Path module (with <code>use_received</code> indeed).</p>
<p>Now, as you noticed, set_contact_alias() may work also for REGISTER, but some UAs don't like it (or use it inappropriately). You are more than welcome to make a pull request to the docs of this function to explain better its purpose based on your experiences.</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-623462304">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJMRQWVDYAGW5ZSHE3RP266HANCNFSM4MTDH5KA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZP3BHNSRCNPINLZK53RP266HA5CNFSM4MTDH5KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEUUUPIA.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-623462304",
"url": "https://github.com/kamailio/kamailio/issues/2308#issuecomment-623462304",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>