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

Yuriy Gorlichenko ovoshlook at gmail.com
Mon Sep 16 21:08:33 CEST 2019


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 <ovoshlook at gmail.com>:

> 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, <miconda at gmail.com>
> wrote:
>
>> 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 Gorlichenko <ovoshlook at gmail.com>
>> wrote:
>>
>>> 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","reload",1)
>>> modparam("app_lua","register","textops")
>>>
>>> app_lua [app_lua_sr.c:1599]: sr_kemi_lua_exec_func_ex(): invalid Lua
>>> environment attributes or parameters
>>>
>>> starting kamailio service with kamailio -f
>>> /etc/kamailio/extended/main.lua
>>>
>>> Also here is little bit confusing me that in case of use "KSR"
>>> everywhere I'm getting message about "sr"...
>>>
>>> Thx in advice
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
>>
>> --
>> Daniel-Constantin Mierla - http://www.asipto.com
>> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190916/c0d6b857/attachment.html>


More information about the sr-users mailing list