[SR-Users] using APP_LUA for complex arithmetic operations
Daniel-Constantin Mierla
miconda at gmail.com
Thu Dec 3 12:34:54 CET 2015
Hello,
not being the author and not using the app_python module, but I pushed a
commit to add a bit to the documentation, based on quick look at the
source code. The commit is in devel (master branch).
Cheers,
Daniel
On 01/12/15 23:12, Mititelu Stefan wrote:
> Hello,
>
> I'm also interested in this subject. I can also see there is also an
> app_python module [1] which is mostly TBD. I want to ask you if there
> is already some dev going on related to this(i.e. certain branch). I'd
> like to look into it and maybe help with it.
>
> Thanks,
> Stefan Mititelu
>
> [1] http://kamailio.org/docs/modules/devel/modules/app_python.html
>
> On Tue, Dec 1, 2015 at 7:57 PM, Jayesh Nambiar <jayesh1017 at gmail.com
> <mailto:jayesh1017 at gmail.com>> wrote:
>
> Hi,
> Playing around a little more with app_lua, I realized that once
> you set any variables inside lua, they are readable from within
> the kamailio config. So that worked out well. This is place for
> everything LUA in kamailio:
> http://sip-router.org/wiki/api/lua/devel
>
> Thanks,
>
> - Jayesh
>
> On Tue, Dec 1, 2015 at 7:23 PM Jayesh Nambiar
> <jayesh1017 at gmail.com <mailto:jayesh1017 at gmail.com>> wrote:
>
> 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
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151203/8b2a83cb/attachment.html>
More information about the sr-users
mailing list