[OpenSIPS-Users] Basic sum question [SOLVED]

Social Boh social at bohboh.info
Mon Mar 18 21:14:54 UTC 2024


thank you. Works

Regards

---
I'm SoCIaL, MayBe

El 18/03/2024 a las 3:50 p. m., Ben Newlin escribió:
>
> 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
>
>
> _______________________________________________
> 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/c2f5d100/attachment.html>


More information about the Users mailing list