Hello,

instead of sr.err() you can use now KSR.err():

  * http://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/core/#void-ksrerr

Cheers,
Daniel

On 07.01.20 14:08, Aymeric Moizard wrote:
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

--

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com