Hello, <div><br></div><div>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:</div><div><div><br></div><div><param name="module-directory" value="/usr/lib/lua/5.1/?.so"/></div>
<div> <param name="module-directory" value="/usr/lib/lua/5.1/?.lua"/></div><div> <param name="module-directory" value="/usr/lib/lua/5.1/socket/?.lua"/></div><div> <param name="module-directory" value="/usr/lib/lua/5.1/socket/?.so"/></div>
<div> <param name="module-directory" value="/usr/local/share/lua/5.1/?.so"/></div><div> <param name="module-directory" value="/usr/local/share/lua/5.1/?.lua"/></div>
<div> <param name="module-directory" value="/usr/local/share/lua/5.1/xmlrpc/?.lua"/></div></div><div><param name="startup-script" value="script.lua"/></div><div><br></div>
<div>The script first line is:</div><div><br></div><div>require("socket")</div><div><br></div><div>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:</div>
<div><div>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':</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/share/lua/5.1/socket.lua: invalid ELF header</div>
<div>stack traceback:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[C]: ?</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[C]: in function 'require'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/freeswitch/scripts/script.lua:1: in main chunk</div>
</div><div><br></div><div>Has anyone gone over the same issue? We tried with the latest git.</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Javi</div>