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>&lt;param name=&quot;module-directory&quot; value=&quot;/usr/lib/lua/5.1/?.so&quot;/&gt;</div>
<div>   &lt;param name=&quot;module-directory&quot; value=&quot;/usr/lib/lua/5.1/?.lua&quot;/&gt;</div><div>    &lt;param name=&quot;module-directory&quot; value=&quot;/usr/lib/lua/5.1/socket/?.lua&quot;/&gt;</div><div>    &lt;param name=&quot;module-directory&quot; value=&quot;/usr/lib/lua/5.1/socket/?.so&quot;/&gt;</div>
<div>    &lt;param name=&quot;module-directory&quot; value=&quot;/usr/local/share/lua/5.1/?.so&quot;/&gt;</div><div>    &lt;param name=&quot;module-directory&quot; value=&quot;/usr/local/share/lua/5.1/?.lua&quot;/&gt;</div>
<div>    &lt;param name=&quot;module-directory&quot; value=&quot;/usr/local/share/lua/5.1/xmlrpc/?.lua&quot;/&gt;</div></div><div>&lt;param name=&quot;startup-script&quot; value=&quot;script.lua&quot;/&gt;</div><div><br></div>
<div>The script first line is:</div><div><br></div><div>require(&quot;socket&quot;)</div><div><br></div><div>The file  /usr/local/share/lua/5.1/socket.lua exists. Actually when we execute &quot;lua script.lua&quot; 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 &#39;socket&#39; from file &#39;/usr/local/share/lua/5.1/socket.lua&#39;:</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 &#39;require&#39;</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>