Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-18 Thread Yuriy Gorlichenko
Will repeat reply here as sent it only to Daniel first Yep. You understand right. Here need to add some context then :-) All my scripts "main.lua" ( that passed via *modparam* *load) *with cfg engine lua starts as *function initPath() * *local myPath = debug.getinfo(1).source:match("@?(.*/)")*

Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-17 Thread Daniel-Constantin Mierla
On 16.09.19 21:08, Yuriy Gorlichenko wrote: > I found issue:  > Called  KSR.log earlier than it was initiated. > Moved part of code previously used in cfgengine "lua" to lua_run(). Just to clarify: the issue was exposed because you moved some code that was used previously with cfgengine lua to a

Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-16 Thread Yuriy Gorlichenko
I found issue: Called KSR.log earlier than it was initiated. Moved part of code previously used in cfgengine "lua" to lua_run(). пн, 16 сент. 2019 г. в 15:25, Yuriy Gorlichenko : > Sorry Just a mistake. Offcourse it is path to kamailio.cfg file which > contains path to main.lua as modparam. Sorr

Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-16 Thread Yuriy Gorlichenko
Sorry Just a mistake. Offcourse it is path to kamailio.cfg file which contains path to main.lua as modparam. Sorry for confusing On Mon, 16 Sep 2019, 10:45 Daniel-Constantin Mierla, wrote: > Hello, > > is it "kamailio -f /etc/kamailio/extended/main.lua" or just a typing > mistake, because the co

Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-16 Thread Daniel-Constantin Mierla
Hello, is it "kamailio -f /etc/kamailio/extended/main.lua" or just a typing mistake, because the config path provided with -f should still be to the kamailio.cfg where you set global parameters, load modules and set their parameters? Cheers, Daniel On Mon, Sep 16, 2019 at 7:23 AM Yuriy Gorlichen

[SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-15 Thread Yuriy Gorlichenko
Hi! Im using kamailio 5.1.8 with app_lua and getting this message during startup of kamailio. Looks like I forgot to add something at the module setup, but cant figure out what is wrong. My setup of app_lua is: modparam("app_lua", "load", "/etc/kamailio/extended/main.lua") modparam("app_lua","relo