[Freeswitch-users] Where are new sounds_dir and recordings_dirvariables set?

Robert Hadley robert.hadley at teotech.com
Tue Feb 9 12:58:25 PST 2010


Configured it with --prefix=/opt/teoswitch.
/r

-----Original Message-----
From: Brian West [mailto:brian at freeswitch.org] 
Sent: Tuesday, February 09, 2010 11:34 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Where are new sounds_dir and
recordings_dirvariables set?

did you configure it with --prefix=/opt/teoswitch or did you move it?

/b

On Feb 9, 2010, at 1:28 PM, Robert Hadley wrote:

>  
> The XML conf files have been recently modified to replace
"$${base_dir}/sounds" with $${sounds_dir}.  The same replacement was done
for $${base_dir}/recordings and $${recordings_dir}.  In vars.xml, the
X-PRE-PROCESS cmd to setting the old variable sound_prefix was removed but
set commands were not added for the new variables sounds_dir and
recordings_dir.  How is FS finding determining the value of $${sounds_dir}
and $${recordings_dir} in the XML files?
>  
> I ask because I have 2 cloned FS servers where one can find sound files in
the IVR when an invalid extension is entered, but the other does not and is
using the wrong path to search for sound files.
>  
> Server 2 Fails:
> 2010-02-09 11:11:16.735745 [DEBUG] switch_ivr_menu.c:381 digits '9999'
> 2010-02-09 11:11:16.735745 [DEBUG] switch_ivr_menu.c:475 action regex
[9999] [/^((5[34][8901][0-9])||(10[0-5][0-9])||(30\d{2}))$/] [0]
> 2010-02-09 11:11:16.735745 [DEBUG] switch_ivr_menu.c:565 IVR menu
'teo_ivr' caught invalid input '9999'
> 2010-02-09 11:11:16.735745 [ERR] mod_sndfile.c:194 Error Opening File
[/opt/teoswitch/sounds/ivr/ivr-that_was_an_invalid_entry.wav] [System error
: No such file or directory.]
>  
> Server 1 Works:
> 2010-02-09 11:17:25.085660 [DEBUG] switch_ivr_menu.c:378 digits '9999'
> 2010-02-09 11:17:25.085660 [DEBUG] switch_ivr_menu.c:472 action regex
[9999] [/^((5[34][8901][0-9])||(10[0-5][0-9])||(30\d{2}))$/] [0]
> 2010-02-09 11:17:25.085660 [DEBUG] switch_ivr_menu.c:562 IVR menu
'teo_ivr' caught invalid input '9999'
> 2010-02-09 11:17:25.085660 [DEBUG] switch_ivr_play_say.c:1162 Codec
Activated L16 at 8000hz 1 channels 20ms
> 2010-02-09 11:17:25.085660 [DEBUG] switch_core_io.c:652
sofia/internal/1045 at 192.168.72.141:5060 receive message
[TRANSCODING_NECESSARY]
> 2010-02-09 11:17:26.765470 [DEBUG] switch_ivr_play_say.c:1454 done playing
file
>  
> I have compared the conf folders and they are nearly identical.  The only
difference I know of is Server 2 was originally compiled with mod_flite
enabled but it is not loaded at runtime.  Any suggestions why one server can
find sound files but the other looks in the wrong path?
>  
> Thanks,
> Robert








More information about the FreeSWITCH-users mailing list