[OpenSIPS-Users] Variable Question
Alexey
slackway2me at gmail.com
Thu Aug 8 17:55:22 UTC 2024
Hello Alexander
I'm not sure if script variables will work as you expect -
it's not clear (at least for me) from the documentation [1], but I can
say for sure
that before assigning a value to the variable you have to 'reset' it:
#reset variable
$var(x) = NULL;
#set variable
$var(x) = 123456;
Otherwise you may catch an OpenSIPS behavior when the variable
sometimes has its value and sometimes does not.
[1] https://www.opensips.org/Documentation/Script-CoreVar-3-5
--
best regards, Alexey
https://alexeyka.zantsev.com/
More information about the Users
mailing list