<p></p>
<p>Regarding <code>local_rport=yes</code>, it is somehow strange, because the code has the condition:</p>
<pre><code>if((ksr_local_rport) || (msg && (msg->msg_flags&FL_ADD_LOCAL_RPORT))) {
</code></pre>
<p><code>ksr_local_rport</code> corresponds to <code>local_rport</code> parameter and <code>FL_ADD_LOCAL_RPORT</code> is set by <code>add_local_rport()</code>. The cfg value <code>yes</code> it is an alias to integer <code>1</code>.</p>
<p>Can you double check using <code>local_rport=yes</code> and no <code>event_route[tm:local-request]</code>? It would be good to sort it out now, when we are on it.</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/2639#issuecomment-780434075">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZI7CP7MXA6PXVFLYLTS7OF6NANCNFSM4XWIGQUA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNAKGCFALFBPP3VL7LS7OF6NA5CNFSM4XWIGQUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF2CHVGY.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/2639#issuecomment-780434075",
"url": "https://github.com/kamailio/kamailio/issues/2639#issuecomment-780434075",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>