indeed, the variables can be easily passed both ways between
kamailio.cfg and lua scripts.
On 01/12/15 18:57, Jayesh Nambiar
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:
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.
Thanks for any help here.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com