Hi, is it possible to change the location of the scripts directory? I want to have one central location for multiple Freeswitch instances to read the javascript files from but have hit a snag. I have added the central location to the dialplan file when calling the javascript application e.g <action application="javascript" data="/central/freeswtich/scripts/test.js" /> This loads the initial file just fine, but any included files (include("includes/file.js")) are still trying to resolve back to /usr/local/freeswitch/scripts/includes/ directory. I have checked the java.conf.xml and spidermonkey.conf.xml files but these do not seem to hold the answer. I would prefer not to have to "hardcode" the scripts and include locations if it can be avoided. Any help would be appreciated. thanks Matt
you can configure with --with-scriptdir= configure flag to set that dir to whatever you like. On May 6, 2014, at 6:46 AM, Matt Broad <matt@inveroak.com> wrote:
Hi,
is it possible to change the location of the scripts directory?
I want to have one central location for multiple Freeswitch instances to read the javascript files from but have hit a snag. I have added the central location to the dialplan file when calling the javascript application e.g <action application="javascript" data="/central/freeswtich/scripts/test.js" />
This loads the initial file just fine, but any included files (include("includes/file.js")) are still trying to resolve back to /usr/local/freeswitch/scripts/includes/ directory.
I have checked the java.conf.xml and spidermonkey.conf.xml files but these do not seem to hold the answer.
I would prefer not to have to "hardcode" the scripts and include locations if it can be avoided.
Any help would be appreciated.
thanks Matt
Hi Michael, thanks for the reply :) I have found the -scripts option when starting freeswitch. Is this the same as you are suggesting, or does your suggestion set it permanently without the need for the -scripts? thanks Matt On 06/05/2014 13:23, Michael Jerris wrote:
you can configure with --with-scriptdir= configure flag to set that dir to whatever you like.
HI Michael, please ignore my reply, I have re-read your email and have realised that adding the suggested flag when configuring freeswitch (./configure) will fulfil my needs :) thanks again for the help thanks Matt On 06/05/2014 14:15, Matt Broad wrote:
Hi Michael,
thanks for the reply :)
I have found the -scripts option when starting freeswitch. Is this the same as you are suggesting, or does your suggestion set it permanently without the need for the -scripts?
thanks Matt
On 06/05/2014 13:23, Michael Jerris wrote:
you can configure with --with-scriptdir= configure flag to set that dir to whatever you like.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
participants (2)
-
Matt Broad
-
Michael Jerris