[SR-Users] app_lua with kamailio 5.3.X

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 7 16:23:55 CET 2020


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
>
> -- 
> Antisip - http://www.antisip.com
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200107/a0d212bd/attachment.html>


More information about the sr-users mailing list