I have a Lua script which is split into multiple files, like:
/etc/kamailio/routing/
├── main.lua
├── logger.lua
└── db.lua
On restart, Kamailio fails to start with an error:
main.lua:2: module 'logger' not found:\n\tno field package.preload
If I set multiple files in the modparam parameter:
modparam("app_lua", "load", "/etc/kamailio/routing/main.lua")
modparam("app_lua", "load", "/etc/kamailio/routing/logger.lua")
I'm getting the same error.
Is it possible to load multiple files, or is this a limit to a single file currently?
HI kamailio users,
There is a WIP PR on master (and targeting 6.0) to clean-up legacy modules
on app_python3.
https://github.com/kamailio/kamailio/pull/3986/commits/a9eb4b35b67b58893772…
If you rely on pre-KEMI features (Core / Router / Logger / Ranks) can you
chime in here.
This work is also in preparation to enable the Kamailio module to use
free-threading builds of Python.
Regards
Richard