[Freeswitch-users] LUA script not found even though script directory is correct
Michael Nielsen
mic.niel84 at gmail.com
Mon Oct 26 21:17:00 MSK 2015
The FS wiki mentions /?.lua, and I've tried without that ending but still
no luck.
I'm running freeswitch-all Debian package 1.6.2.
On Monday, October 26, 2015, Michael Nielsen <mic.niel84 at gmail.com> wrote:
> Yes, I've restarted FS and actually the entire server...
>
> On Sun, Oct 25, 2015 at 8:25 AM, ik <idokan at gmail.com
> <javascript:_e(%7B%7D,'cvml','idokan at gmail.com');>> wrote:
>
>> Have you restarted freeswitch after setting the directory?
>> 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).
>>
>> Ido
>>
>> On Fri, Oct 23, 2015 at 4:02 PM, Michael Nielsen <mic.niel84 at gmail.com
>> <javascript:_e(%7B%7D,'cvml','mic.niel84 at gmail.com');>> wrote:
>>
>>> My log shows this:
>>>
>>> 2015-10-23 08:00:17.609061 [INFO] mod_lua.cpp:335 lua: appending script
>>> directory: '/etc/freeswitch/scripts/?.lua'
>>>
>>> 2015-10-23 08:00:17.609067 [INFO] mod_lua.cpp:325 binding 'users.lua' to
>>> 'directory'
>>>
>>> 2015-10-23 08:00:17.609075 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to:
>>> '/etc/freeswitch/scripts/?.lua'
>>>
>>>
>>> If I move my script to /usr/share/... then it works, but I would like to
>>> keep my scripts in one place.
>>>
>>> On Fri, Oct 23, 2015 at 2:26 PM, Michael Nielsen <mic.niel84 at gmail.com
>>> <javascript:_e(%7B%7D,'cvml','mic.niel84 at gmail.com');>> wrote:
>>>
>>>> I get the error:
>>>>
>>>> cannot open /usr/share/freeswitch/scripts/users.lua
>>>>
>>>> My script is located at /etc/freeswitch/scripts/ and I've added the
>>>> following to my lua.conf.xml
>>>>
>>>> <param name="script-directory"
>>>> value="/etc/freeswitch/scripts/?.lua"/>
>>>>
>>>> <param name="xml-handler-script" value="users.lua"/>
>>>>
>>>> <param name="xml-handler-bindings" value="directory"/>
>>>>
>>>>
>>>> Why is it still looking in /usr/share/freeswitch...?
>>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151026/2b063ac9/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list