Hello,
we have a lua script that we want to use as startup script in
order to start listening for events as soon as FS starts. This
is the configuration:
<param name="module-directory"
value="/usr/lib/lua/5.1/?.so"/>
<param name="module-directory"
value="/usr/lib/lua/5.1/?.lua"/>
<param name="module-directory"
value="/usr/lib/lua/5.1/socket/?.lua"/>
<param name="module-directory"
value="/usr/lib/lua/5.1/socket/?.so"/>
<param name="module-directory"
value="/usr/local/share/lua/5.1/?.so"/>
<param name="module-directory"
value="/usr/local/share/lua/5.1/?.lua"/>
<param name="module-directory"
value="/usr/local/share/lua/5.1/xmlrpc/?.lua"/>
<param name="startup-script" value="script.lua"/>
The script first line is:
require("socket")
The file /usr/local/share/lua/5.1/socket.lua exists.
Actually when we execute "lua script.lua" it runs properly. But
this is the freeswitch log at startup:
2011-05-10 07:00:31.281411 [ERR] mod_lua.cpp:191 error
loading module 'socket' from file
'/usr/local/share/lua/5.1/socket.lua':
/usr/local/share/lua/5.1/socket.lua:
invalid ELF header
stack traceback:
[C]:
?
[C]:
in function 'require'
/usr/local/freeswitch/scripts/script.lua:1:
in main chunk
Has anyone gone over the same issue? We tried with the latest
git.
Thanks in advance
Javi
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org