[OpenSIPS-Users] Basic sum question
Ben Newlin
Ben.Newlin at genesys.com
Mon Mar 18 20:50:48 UTC 2024
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-bounces at lists.opensips.org> on behalf of Social Boh <social at bohboh.info>
Date: Monday, March 18, 2024 at 4:44 PM
To: users at lists.opensips.org <users at 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 at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240318/a7223704/attachment.html>
More information about the Users
mailing list