<p dir="ltr">Just make a symlink to the folder<br>
27 окт. 2015 г. 3:07 пользователь "Michael Nielsen" <<a href="mailto:mic.niel84@gmail.com">mic.niel84@gmail.com</a>> написал:<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">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">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">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">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">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">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">consulting@freeswitch.org</a><br>
>>>>>> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
>>>>>><br>
>>>>>> Official FreeSWITCH Sites<br>
>>>>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>>>>>> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
>>>>>> <a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> _________________________________________________________________________<br>
>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>>> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
>>>>><br>
>>>>> Official FreeSWITCH Sites<br>
>>>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>>>>> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
>>>>> <a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>>>><br>
>>>><br>
>>><br>
>>> _________________________________________________________________________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>>> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
>>> <a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>><br>
>><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</p>