<div dir="ltr">That could of course fix the issue for know, but I'm running multiple FS' and would like to keep the structure for automatic updates on all FS' etc.<div>...and I guess I like the real issue to be fixed, which is why FS doesn't recognise the value.</div><div>My startup log shows:</div><div>
<p class=""><span class="">2015-10-27 01:50:06.454994 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts/?.lua'</span></p>
<p class=""><span class="">2015-10-27 01:50:06.455000 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'</span></p>
<p class=""><span class="">2015-10-27 01:50:06.455008 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts/?.lua'</span></p><p class=""><span class=""><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 3:18 AM, Kamil Nigmatullin <span dir="ltr"><<a href="mailto:kamil.nigmatullin@gmail.com" target="_blank">kamil.nigmatullin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Just make a symlink to the folder<br>
27 окт. 2015 г. 3:07 пользователь "Michael Nielsen" <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> написал:</p><div><div class="h5"><br>
><br>
> That refers to /usr/share/FreeSWITCH/scripts <br>
> But I want the other dir which is set in LUA.conf.xml. <br>
> The capital letters is my autocorrect on iOS :(<br>
><br>
><br>
> On Monday, October 26, 2015, Russell Treleaven <<a href="mailto:rtreleaven@bunnykick.ca" target="_blank">rtreleaven@bunnykick.ca</a>> wrote:<br>
>><br>
>> from the freeswitch console issue "global_getvar script_dir"<br>
>><br>
>> On Mon, Oct 26, 2015 at 2:17 PM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
>>><br>
>>> The FS wiki mentions /?.lua, and I've tried without that ending but still no luck. <br>
>>><br>
>>> I'm running freeswitch-all Debian package 1.6.2. <br>
>>><br>
>>><br>
>>> On Monday, October 26, 2015, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Yes, I've restarted FS and actually the entire server...<br>
>>>><br>
>>>> On Sun, Oct 25, 2015 at 8:25 AM, ik <<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>> Have you restarted freeswitch after setting the directory?<br>
>>>>> 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>
>>>>> Ido<br>
>>>>><br>
>>>>> On Fri, Oct 23, 2015 at 4:02 PM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
>>>>>><br>
>>>>>> My log shows this:<br>
>>>>>><br>
>>>>>> 2015-10-23 08:00:17.609061 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts/?.lua'<br>
>>>>>><br>
>>>>>> 2015-10-23 08:00:17.609067 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'<br>
>>>>>><br>
>>>>>> 2015-10-23 08:00:17.609075 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts/?.lua'<br>
>>>>>><br>
>>>>>><br>
>>>>>> If I move my script to /usr/share/... then it works, but I would like to keep my scripts in one place.<br>
>>>>>><br>
>>>>>><br>
>>>>>> On Fri, Oct 23, 2015 at 2:26 PM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>> I get the error:<br>
>>>>>>><br>
>>>>>>> cannot open /usr/share/freeswitch/scripts/users.lua<br>
>>>>>>><br>
>>>>>>> My script is located at /etc/freeswitch/scripts/ and I've added the following to my lua.conf.xml<br>
>>>>>>><br>
>>>>>>> <param name="script-directory" value="/etc/freeswitch/scripts/?.lua"/><br>
>>>>>>><br>
>>>>>>> <param name="xml-handler-script" value="users.lua"/><br>
>>>>>>><br>
>>>>>>> <param name="xml-handler-bindings" value="directory"/><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> Why is it still looking in /usr/share/freeswitch...?<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _________________________________________________________________________<br>
>>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>>>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>>><br>
>>>>>> Official FreeSWITCH Sites<br>
>>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>>> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>>>>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>>>>><br>
>>>>>> FreeSWITCH-users mailing list<br>
>>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> _________________________________________________________________________<br>
>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>><br>
>>>>> Official FreeSWITCH Sites<br>
>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>>> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>>>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>>>><br>
>>>>> FreeSWITCH-users mailing list<br>
>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>>><br>
>>>><br>
>>><br>
>>> _________________________________________________________________________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div><p></p>
<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>