<p></p>
<p>The Via header was first time created before execution of <code>event_route[tm:local-request]</code>, the condition there is to figure out if it needs updates.</p>
<p>Starting from this, I just looked back into the code and discovered that the tm module does not create Via header first time using create_via_hf(), but another function in the module. I will try to fix it soon.</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-780501109">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZONFGUPO3RUABCK77DS7OT2NANCNFSM4XWIGQUA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJVKKJGLM7HMYVIIWDS7OT2NA5CNFSM4XWIGQUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF2CYA5I.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-780501109",
"url": "https://github.com/kamailio/kamailio/issues/2639#issuecomment-780501109",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>