[SR-Users] using APP_LUA for complex arithmetic operations

Jayesh Nambiar jayesh1017 at gmail.com
Tue Dec 1 14:53:06 CET 2015


Hi,
I understand that kamailio does not allow float-point values in variables
and I think kamailio is not a great place to do complex arithemtic
operations and so I thought of using app_lua for the same.
So can I pass the control to app_lua and come back to config script with
some values? For eg. can I call a lua script that does a complex
arithemetic operation on my AVP values and based on certain conditions;
return back a true or false and then I continue in my existing script.
I came across an exmaple
http://kb.asipto.com/kamailio:usage:k32-lua-routing but
this is more like doing the entire thing inside LUA. What I'm looking at is
getting certain things done in lua and continue the script processing.
Thanks for any help here.

- Jayesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151201/1bce6949/attachment.html>


More information about the sr-users mailing list