You have to use parentheses in order to use a transformation on a variable.

$var(cs) = $(cs{s.int}) + 1;

Ben Newlin

From: Users <users-boun...@lists.opensips.org> on behalf of Social Boh 
<soc...@bohboh.info>
Date: Monday, March 18, 2024 at 4:44 PM
To: users@lists.opensips.org <users@lists.opensips.org>
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
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to