The FS wiki mentions /?.lua, and I've tried without that ending but still no luck. <div><br></div><div>I'm running freeswitch-all Debian package 1.6.2. <br><br>On Monday, October 26, 2015, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com">mic.niel84@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, I've restarted FS and actually the entire server...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 25, 2015 at 8:25 AM, ik <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','idokan@gmail.com');" target="_blank">idokan@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"><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"><div><div>On Fri, Oct 23, 2015 at 4:02 PM, Michael Nielsen <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','mic.niel84@gmail.com');" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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><div><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="javascript:_e(%7B%7D,'cvml','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></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');" target="_blank">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="javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');" target="_blank">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>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');" target="_blank">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="javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');" target="_blank">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>
</blockquote></div>