Hello,
On 11/29/12 4:46 PM, Vicente Hernando wrote:
Hello
I'm trying to execute a Lua script on kamailio startup. I'm calling
the script inside event_route[hable:mod-init], but it fails to be
executed with this error:
[app_lua_mod.c:167]: Lua env not initialized
It happens both with lua_run and lua_dofile.
I've played with the order in wich the modules are loaded, but I
haven't been able to get rid of that message. Kamailio version is
3.3.0. Do you think this is feasible or should I try a different
solution?
haven't checked the sources yet and don't remember by hart, but I
guess
the lua environment is initialized in the children processes. This
event_route[htable:mod-init] is executed after all modules were
initialized, but before creating children.
What kind of operation you want to do? Something that should affect all
kamailio processes (ie., to be before forking them)?
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda