<p></p>
<p>handle_ruri_alias() only handle alias in Request-URI, not the Contact returned by the registrar for REGISTER.</p>
<p>For most phone clients this is not a problem but Bria used that info in subsequent requests.<br>
So, when the proxy again doing set_contact_alias() on an INVITE from Bria (already containing an alias), you'll end up with two alias parameters. One of them might be outdated if port/source-ip has changed through NAT since initial registration.</p>
<p>When proxy then calls handle_ruri_alias() the first parameter is handled and removed, and you'll send the one which the proxy actually added back to the client. The ip/port used in the reply might be wrong if the alias Bria added is outdated.</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-652963591">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZM3J3OGJ2SLAVZJH6LRZRZEPANCNFSM4MTDH5KA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZP2AHYBRJPBBWR75O3RZRZEPA5CNFSM4MTDH5KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE3VW6BY.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-652963591",
"url": "https://github.com/kamailio/kamailio/issues/2308#issuecomment-652963591",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>