[OpenSIPS-Users] Variables related question
Jayesh Nambiar
jayesh.voip at gmail.com
Mon Aug 9 13:01:48 CEST 2010
Hi,
I have a few questions related to the variables in opensips and would really
appreciate if someone can help me clear these doubts:
1) Is it possible to fetch unsigned integers from the DB and store it in the
AVP? For eg, fetching a negative value from the DB.
2) Is it possible to fetch floating values or numbers with decimals from the
DB?
3) Can I assign a decimal value to a script variable? For eg: $var(a) =
0.015; Is this valid, because i get syntax error.
4) Can I perform arithmetic operation on floating values, for eg: $var(b) =
0.015 - 0.010; Is this valid?
5) Can I initialize a variable in the script to be defined as string or int?
I am required to perform similar arithmetic operations in the script and
based upon the values, do certain routing. Would appreciate any inputs
regarding the same.
Thanks in Advance.
--- Jayesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100809/77ef7f01/attachment.htm
More information about the Users
mailing list