<p></p>
<p>Thanks for the PR!</p>
<p>However I pushed a different commit (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/d5c1b4693b6e47b4123b5f9417b5fd88d4dafd1f/hovercard" href="https://github.com/kamailio/kamailio/commit/d5c1b4693b6e47b4123b5f9417b5fd88d4dafd1f"><tt>d5c1b46</tt></a>) to have the same behaviours as when the sip message is received. Kamailio does not parse all the headers before config is executed due to internal designed, so modules have to check if needed headers are parsed, but Call-Id is indeed parsed before config execution.</p>
<p>If there is still an issue after with commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/d5c1b4693b6e47b4123b5f9417b5fd88d4dafd1f/hovercard" href="https://github.com/kamailio/kamailio/commit/d5c1b4693b6e47b4123b5f9417b5fd88d4dafd1f"><tt>d5c1b46</tt></a>, then open an issue. If works, then I will backport.</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/pull/2877#issuecomment-942547745">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPATNH2VDUQPDQXFS3UGW6G3ANCNFSM5FWUYTSQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZMXMQOY2PPTO2VMJTTUGW6G3A5CNFSM5FWUYTS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHAXCGII.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/pull/2877#issuecomment-942547745",
"url": "https://github.com/kamailio/kamailio/pull/2877#issuecomment-942547745",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>