You can also use "--with-scriptdir" when configuring Freeswitch. e.g. ./configure --with-scriptdir=/etc/freeswitch/scripts/ This will overwrite the default script location to the one entered. This will remove the need to use the start option suggested by Vallimamod (although this is also a valid option if you are likely to change the location and do not want to re-configure Freeswitch) Hope this helps thanks Matt On 27 October 2015 at 09:09, Vallimamod Abdullah <vma@440hz.fr> wrote:
Hi,
Have you tried the freeswitch start option -scripts:
-scripts [scriptsdir] -- alternate directory for scripts
Best Regards, - Vallimamod .
On 27 Oct 2015, at 07:56, Michael Nielsen <mic.niel84@gmail.com> wrote:
My quick-fix for now is: <param name="xml-handler-script" value="/etc/freeswitch/scripts/users.lua"/>
But it would be nice to have a general setting of script dir to /etc/freeswitch/scripts/
but this works...
On Tue, Oct 27, 2015 at 7:53 AM, Michael Nielsen <mic.niel84@gmail.com> wrote: And I've had tried: 2015-10-27 01:52:18.389161 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts'
2015-10-27 01:52:18.389168 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'
2015-10-27 01:52:18.389176 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts'
Still no luck
On Tue, Oct 27, 2015 at 7:50 AM, Michael Nielsen <mic.niel84@gmail.com> wrote: 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. ...and I guess I like the real issue to be fixed, which is why FS doesn't recognise the value. My startup log shows: 2015-10-27 01:50:06.454994 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts/?.lua'
2015-10-27 01:50:06.455000 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'
2015-10-27 01:50:06.455008 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts/?.lua'
On Tue, Oct 27, 2015 at 3:18 AM, Kamil Nigmatullin < kamil.nigmatullin@gmail.com> wrote: Just make a symlink to the folder 27 окт. 2015 г. 3:07 пользователь "Michael Nielsen" < mic.niel84@gmail.com> написал:
That refers to /usr/share/FreeSWITCH/scripts But I want the other dir which is set in LUA.conf.xml. The capital letters is my autocorrect on iOS :(
On Monday, October 26, 2015, Russell Treleaven <
rtreleaven@bunnykick.ca> wrote:
from the freeswitch console issue "global_getvar script_dir"
On Mon, Oct 26, 2015 at 2:17 PM, Michael Nielsen <
mic.niel84@gmail.com> wrote:
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@gmail.com>
wrote:
Yes, I've restarted FS and actually the entire server...
On Sun, Oct 25, 2015 at 8:25 AM, ik <idokan@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org