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/

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to