[OpenSIPS-Users] Performing math functions in OpenSIPs
Brad Bendy
brad.bendy at benganetworks.com
Thu Mar 4 19:55:09 CET 2010
Hello List,
Im trying to do some math functions, ive tried a few different ways and
get either invalid string operands or no value in right expression, ive
tried the following:
$avp(i:70) is set to say .005
$avp(i:55) = $avp(i:70) * (6 / 100);
$avp(i:55) = ($avp(i:70) * (6 / 100));
$avp(i:55) = $avp(i:70) * 6 / 100;
$avp(i:55) = $avp(i:70) * .006;
$avp(i:55) = ($avp(i:70) * .006);
Im sure I tried a few more to, but basically i want to take a AVP then
multiply it by a number and get a result, this will be a decimal like
0.00234
Any suggestions?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100304/7b797d61/attachment.htm
More information about the Users
mailing list