You have to use parentheses in order to use a transformation on a variable.
$var(cs) = $(cs{s.int}) + 1;
Ben Newlin
From: Users <[email protected]> on behalf of Social Boh
<[email protected]>
Date: Monday, March 18, 2024 at 4:44 PM
To: [email protected] <[email protected]>
Subject: [OpenSIPS-Users] Basic sum question
EXTERNAL EMAIL - Please use caution with links and attachments
Hello list
how can I add a 1 to a script variable like:
$var(cs) = $cs{s.int} + 1;
Result:
ERROR:core:eval_elem: invalid string operands
WARNING:core:do_assign: no value in right expression at
/etc/opensips/opensips.cfg:205
Thank you
Regards
--
---
I'm SoCIaL, MayBe
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users