<div dir="ltr">Hi,<div>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:</div><div><a href="http://sip-router.org/wiki/api/lua/devel">http://sip-router.org/wiki/api/lua/devel</a><br></div><div><br></div><div>Thanks,</div><div><br></div><div>- Jayesh</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 1, 2015 at 7:23 PM Jayesh Nambiar <<a href="mailto:jayesh1017@gmail.com">jayesh1017@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>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.</div><div>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.</div><div>I came across an exmaple <a href="http://kb.asipto.com/kamailio:usage:k32-lua-routing" target="_blank">http://kb.asipto.com/kamailio:usage:k32-lua-routing</a> 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.</div><div>Thanks for any help here.</div></div><div dir="ltr"><div dir="ltr"><div><br></div><div>- Jayesh</div></div></div></blockquote></div>