<p></p>
<p>I'm using set_contact_alias() to fix nat registrations, in this case with a Bria client.<br>
Somehow Bria learns that I'm using this - probably through the Contact in the 200 OK reply of save(). Bria then adds this to the Contact when replying to incoming INVITE.</p>
<p>After some time, something happens in the network at client side and the connection gets a new port through the router. Bria does not notice and still sends the old alias-parameter with the port not used anymore. When I'm calling handle_ruri_alias(), Kamailio reads this instead of the actual port and the ACK to 200 OK is sent to a port not used anymore.</p>
<p>This can probably be solved by either, in preferred order:</p>
<ul>
<li>rewrite set_contact_alias() and add_contact_alias() to replace existing alias parameters</li>
<li>regexp remove of alias parameter from Contact of all messages coming from clients</li>
<li>regexp remove of alias parameter from Contact returned by save()</li>
</ul>
<p>Br,<br>
Morten</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">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPVNOMHXH2JLATOMYTRO4UGZANCNFSM4MTDH5KA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLXTB63TDG62DZPKPLRO4UGZA5CNFSM4MTDH5KKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JCFZ5MQ.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",
"url": "https://github.com/kamailio/kamailio/issues/2308",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>