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?