<div dir="ltr">from the freeswitch console issue  &quot;global_getvar script_dir&quot;</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 26, 2015 at 2:17 PM, Michael Nielsen <span dir="ltr">&lt;<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The FS wiki mentions /?.lua, and I&#39;ve tried without that ending but still no luck. <div><br></div><div>I&#39;m running freeswitch-all Debian package 1.6.2. <div><div class="h5"><br><br>On Monday, October 26, 2015, Michael Nielsen &lt;<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>&gt; 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&#39;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">&lt;<a>idokan@gmail.com</a>&gt;</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">&lt;<a>mic.niel84@gmail.com</a>&gt;</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: &#39;/etc/freeswitch/scripts/?.lua&#39;</span></p>
<p><span>2015-10-23 08:00:17.609067 [INFO] mod_lua.cpp:325 binding &#39;users.lua&#39; to &#39;directory&#39;</span></p>
<p><span>2015-10-23 08:00:17.609075 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: &#39;/etc/freeswitch/scripts/?.lua&#39;</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">&lt;<a>mic.niel84@gmail.com</a>&gt;</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&#39;ve added the following to my lua.conf.xml</span></p><p><span>







</span></p><p><span>    </span><span>&lt;param</span><span> name=&quot;script-directory&quot; value=&quot;/etc/freeswitch/scripts/?.lua&quot;/</span><span>&gt;</span></p><p><span>    </span><span>&lt;param</span><span> name=&quot;xml-handler-script&quot; value=&quot;users.lua&quot;/</span><span>&gt;</span></p><p><span>








</span></p><p><span>    </span><span>&lt;param</span><span> name=&quot;xml-handler-bindings&quot; value=&quot;directory&quot;/</span><span>&gt;</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>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>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>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>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></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>