[SR-Users] app_lua with kamailio 5.3.X

Aymeric Moizard amoizard at gmail.com
Tue Jan 7 14:08:36 CET 2020

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

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

Thanks a lot.

Antisip - http://www.antisip.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200107/60002b67/attachment.html>

More information about the sr-users mailing list