Hi All!

I have moved from kamailio 5.2.X to 5.3.X and I have now an error
with calling "sr.err" from my lua script:

           sr.err("ERROR: param $tU [" .. tu .. "]\n")

app_lua [app_lua_api.c:626]: app_lua_runstring(): error from Lua: /etc/kamailio/lua/my-script.lua:69: attempt to index global 'sr' (a nil value)

I do understand that I should add this to continue with old way:

loadmodule "app_lua_sr.so"
modparam("app_lua_sr", "register", "sl")

However, I would prefer to fix my script to use the NEW way but can't find it.

Thanks a lot.
Aymeric

--
Antisip - http://www.antisip.com