$${base_dir} effect
Hello. I have a start up script which CDs to basedir of FS before launching daemon with "bin/freeswitch -nc". In freeswitch.xml I have <X-PRE-PROCESS cmd="set" data="base_dir=."/> to set other paths relative to current directory. As in default config files from repository most parameters which uses $${base_dir}/some-path a commented out, its hard to test. I've encountered problem with mod_callcenter. In callcenter.conf.xml there is: <param name="record-template" value="$${base_dir}/${destination_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.${caller_id_number}.${uuid}.wav"/>. In final freeswitch.xml.fsxml the line is: <param name="record-template" value="/srv/freeswitch/recordings/${destination_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.${caller_id_number}.${uuid}.wav"/> But final recorded path from logs become $${sounds_dir}/$${base_dir}/recordings/ ie /opt/freeswitch/sounds/en/us/callie/./recordings/ or /opt/freeswitch/sounds/en/us/callie/recordings/ in final creation. Where does this $${sounds_dir} come if I don't specify it? Thank you.
01.08.2012 09:53, Vbvbrj пишет:
Where does this $${sounds_dir} come if I don't specify it? in configure.in
AC_ARG_WITH([soundsdir], [AS_HELP_STRING([--with-soundsdir=DIR], [Put sound files into this location (default: $prefix/sounds)])], [soundsdir="$withval"], [soundsdir="$prefix/sounds"]) AC_SUBST(soundsdir) So you need setup it during build: - ./configure --with-soundsdir ... -- WBR, Viacheslav Dubrovskyi
On 01.08.2012 11:20, Viacheslav Dubrovskyi wrote:
01.08.2012 09:53, Vbvbrj пишет:
Where does this $${sounds_dir} come if I don't specify it? in configure.in
AC_ARG_WITH([soundsdir], [AS_HELP_STRING([--with-soundsdir=DIR], [Put sound files into this location (default: $prefix/sounds)])], [soundsdir="$withval"], [soundsdir="$prefix/sounds"]) AC_SUBST(soundsdir)
So you need setup it during build: -
./configure --with-soundsdir ...
On configure, default is: soundsdir = ${prefix}/sounds recordingsdir = ${prefix}/recordings Also I specify soundsdir and recordingsdir using command line on FS start. If in callcenter.conf.xml I use absolute path for recordings folder, the resulting folder is correct. If I use relative, then value of ${sounds_dir} is prepended. It should not do this. Inot prepend ${base_dir} ?
participants (2)
-
Vbvbrj
-
Viacheslav Dubrovskyi