<p></p>
<p>Never mind, this is properly documented in the registrar module docs:</p>
<blockquote>
<p>A call to lookup(...) always uses the path header if found, and inserts it as Route HF either in front of the first Route HF, or after the last Via HF if no Route is present. It also sets the destination uri to the first Path uri, thus overwriting the received-uri, because NAT has to be handled at the outbound-proxy of the UAC (the first hop after client's NAT).</p>
</blockquote>

<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/2447#issuecomment-676572411">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLQMTIG4EPEEPH7VVLSBQGV7ANCNFSM4QD2D5NQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOFQ4RZ74ZWHHFS2W3SBQGV7A5CNFSM4QD2D5N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFBJ2Z6Y.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/2447#issuecomment-676572411",
"url": "https://github.com/kamailio/kamailio/issues/2447#issuecomment-676572411",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>