Re: [SR-Users] using APP_LUA for complex arithmetic operations

2015-12-03 Thread Daniel-Constantin Mierla
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 t

Re: [SR-Users] using APP_LUA for complex arithmetic operations

2015-12-03 Thread Daniel-Constantin Mierla
Hello, indeed, the variables can be easily passed both ways between kamailio.cfg and lua scripts. Cheers, Daniel On 01/12/15 18:57, Jayesh Nambiar 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

Re: [SR-Users] using APP_LUA for complex arithmetic operations

2015-12-01 Thread Mititelu Stefan
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:/

Re: [SR-Users] using APP_LUA for complex arithmetic operations

2015-12-01 Thread Jayesh Nambiar
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,

[SR-Users] using APP_LUA for complex arithmetic operations

2015-12-01 Thread Jayesh Nambiar
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. c