<p></p>
<p dir="auto">Hi,</p>
<p dir="auto">Indeed, from what I've checked so far, the $var() value is initialized to 0. This is done when kamailio starts.</p>
<p dir="auto">However, the issue we faced is more related to this excerpt from kamailio cookbooks, pseudovariables:</p>
<pre class="notranslate"><code class="notranslate">Note: A script variable persists over the Kamailio process in which it was initialized, so be sure of giving it a new value before reading it or you'll get the value asigned in any other previous message processed by the same Kamailio process (pid). 
</code></pre>
<p dir="auto">Let me know if now its more clear what the PR tries to warn.</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-1128719358">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIHGOGDBZVRJ4RWXRTVKN2Y3ANCNFSM5WEMKM5Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZIYMDO45JGRQOCZWCLVKN2Y3A5CNFSM5WEMKM52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOINDOH7Q.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/c1128719358</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-1128719358",
"url": "https://github.com/kamailio/kamailio/pull/3114#issuecomment-1128719358",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>