<div dir="ltr"><div><div>Have you restarted freeswitch after setting the directory?<br></div>The lua module is loaded as a core module, and can only be reloaded with FS itself (as I found out myself the hard way).<br><br></div>Ido<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 23, 2015 at 4:02 PM, Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My log shows this:<div>
<p><span>2015-10-23 08:00:17.609061 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts/?.lua'</span></p>
<p><span>2015-10-23 08:00:17.609067 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'</span></p>
<p><span>2015-10-23 08:00:17.609075 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts/?.lua'</span></p><p><span><br></span></p><p><span>If I move my script to /usr/share/... then it works, but I would like to keep my scripts in one place.</span></p></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 23, 2015 at 2:26 PM, Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I get the error:<div>
<p><span>cannot open /usr/share/freeswitch/scripts/users.lua</span></p><p><span>My script is located at /etc/freeswitch/scripts/ and I've added the following to my lua.conf.xml</span></p><p><span>
</span></p><p><span> </span><span><param</span><span> name="script-directory" value="/etc/freeswitch/scripts/?.lua"/</span><span>></span></p><p><span> </span><span><param</span><span> name="xml-handler-script" value="users.lua"/</span><span>></span></p><p><span>
</span></p><p><span> </span><span><param</span><span> name="xml-handler-bindings" value="directory"/</span><span>></span></p><p><span><br></span></p><p><span>Why is it still looking in /usr/share/freeswitch...?</span></p></div></div>
</blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>