<div dir="ltr"><div>Hi All!</div><div><br></div><div>I have moved from kamailio 5.2.X to 5.3.X and I have now an error</div><div>with calling "sr.err" from my lua script:</div><div><br></div><div>           sr.err("ERROR: param $tU [" .. tu .. "]\n")<br></div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">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)</blockquote><div><br></div><div>I do understand that I should add this to continue with old way:<br></div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>loadmodule "app_lua_sr.so"</div><div>modparam("app_lua_sr", "register", "sl")</div></blockquote><div><br></div><div>However, I would prefer to fix my script to use the NEW way but can't find it.</div><div><br></div><div>Thanks a lot.</div><div>Aymeric</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><img src="http://sip.antisip.com/am48.png">Antisip - <a href="http://www.antisip.com" target="_blank">http://www.antisip.com</a><br></div></div>