Hi,
Indeed, from what I've checked so far, the $var() value is initialized to 0. This is
done when kamailio starts.
However, the issue we faced is more related to this excerpt from kamailio cookbooks,
pseudovariables:
```
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).
```
Let me know if now its more clear what the PR tries to warn.
Thank you,
Stefan
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3114#issuecomment-1128719358
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3114/c1128719358(a)github.com>