Hi,<div>I have a few questions related to the variables in opensips and would really appreciate if someone can help me clear these doubts:</div><div>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.</div>
<div>2) Is it possible to fetch floating values or numbers with decimals from the DB?</div><div>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.</div>
<div>4) Can I perform arithmetic operation on floating values, for eg: $var(b) = 0.015 - 0.010; Is this valid?</div><div>5) Can I initialize a variable in the script to be defined as string or int?</div><div><br></div><div>
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.</div><div><br></div><div>Thanks in Advance.</div><div><br>
</div><div>--- Jayesh</div>