<p></p>

<h3 dir="auto">Description</h3>
<p dir="auto">The docs for <code class="notranslate">set_contact_alias()</code> says:</p>
<blockquote>
<p dir="auto"><strong>The new contact URI is immediately visible to other modules</strong> in the way the fix_nated_contact() does it.</p>
</blockquote>
<p dir="auto">I don't know exactly what is meant by the last part of that sentence as that isn't documented, but the first part certainly doesn't hold:</p>
<p dir="auto">The following snippet:</p>
<pre class="notranslate"><code class="notranslate">xlog("L_INFO", "  Received Contact: $ct");
if (set_contact_alias()) {
    xlog("L_INFO", "  Aliassed Contact: $ct");
}
</code></pre>
<p dir="auto">Causes these log entries:</p>
<pre class="notranslate"><code class="notranslate">2022-07-26T15:41:57.351148+02:00 proxydev001 prx1[12116]: INFO:   Received Contact: sip:sipp@unknowndomain;transport=udp
2022-07-26T15:41:57.351148+02:00 proxydev001 prx1[12116]: INFO:   Aliassed Contact: sip:sipp@unknowndomain;transport=udp
</code></pre>
<p dir="auto">Which clearly shows that the changed uri is <strong>not visible</strong> to the <code class="notranslate">pv</code> module (which exports <code class="notranslate">$ct</code>).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3201">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLMV2EZKYY76M726JLVV7U6RANCNFSM54WBDUJA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZIH6GEF4NAELZD6RODVV7U6RA5CNFSM54WBDUJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4TUTNGKQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3201</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3201",
"url": "https://github.com/kamailio/kamailio/issues/3201",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>