<div dir="ltr">My log shows this:<div>
<p class=""><span class="">2015-10-23 08:00:17.609061 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts/?.lua'</span></p>
<p class=""><span class="">2015-10-23 08:00:17.609067 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'</span></p>
<p class=""><span class="">2015-10-23 08:00:17.609075 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts/?.lua'</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">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="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>