Hi Daniel,
Thank you for the reply. One scenario was like to check if the available
credit is greater than or equal to required credit, which requires
comparison of float values in the script. Currently the solution is to
multiply the rates by say 10000000 and then compare the values in the
script. It works well but doesnt look like a right way of doing it. So I
might probably offload this task to the DB !!
I will definitely use XAVP more and try to offload arithmetic operations to
DB as much as possible.
Thanks,
--- Jayesh
On Mon, Jul 22, 2013 at 3:46 PM, Daniel-Constantin Mierla <miconda(a)gmail.com
wrote:
Hello,
On 7/17/13 3:00 PM, Jayesh Nambiar wrote:
Is there a plan to support floating point
arithmetic operations in
kamailio in the near future.
it might happen, although is not a high priority here (and don't know
about other devs), because there are ways to do it right now in many cases
- if you give details about some specific needs, we may be able to point
the solution.
If you need to work with such value in your module (e.g., store and
retrieve later), XAVPs has lots of types that can store (only the
arithmetic operations from config are limited to int and string).
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/**miconda<http://www.linkedin.com/in/miconda&…
______________________________**_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http:/…