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

Michael Jerris mike at jerris.com
Tue Feb 9 15:07:20 PST 2010


These are set at configure time based on the prefix.  When FreeSWITCH starts, it sets global vars (before the config pre-processing) that should work just like the old hard-coded values and how base_dir works with /sounds added to it

Mike

On Feb 9, 2010, at 2: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
> _______________________________________________
> FreeSWITCH-users mailing list
> 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/20100209/d7eb530a/attachment-0002.html 


More information about the FreeSWITCH-users mailing list