<p></p>
<p dir="auto">Consider this scenario:<br>
1'st part:</p>
<pre class="notranslate"><code class="notranslate">if (is_present_hf("SOME_HEADER")) {
    $var(data) = _get_data_from_some_header_;
}
</code></pre>
<p dir="auto">2'nd part, later:</p>
<pre class="notranslate"><code class="notranslate">if ($var(data) != "") {
    _do_something_with_data_
}
</code></pre>
<p dir="auto">2'nd part gets called even for SIP that does not have  SOME_HEADER header, with value set in previous SIP that had SOME_HEADER.</p>
<p dir="auto">I wanted to log a warning for this, so if SIP with no SOME_HEADER header comes in first, in one routing process, I will see the warning log and know to set <code class="notranslate">$var(data)="";</code> before the 1'st part.</p>
<p dir="auto">Thank you,<br>
Stefan</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/pull/3114#issuecomment-1128807385">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPGTCYB4ORBZYC6EZDVKOGGVANCNFSM5WEMKM5Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZM5BCEO4M46V3FDCSTVKOGGVA5CNFSM5WEMKM52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOINEDXWI.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/pull/3114/c1128807385</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/pull/3114#issuecomment-1128807385",
"url": "https://github.com/kamailio/kamailio/pull/3114#issuecomment-1128807385",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>