[Freeswitch-users] Language settings for demo IVR

Dmitry Bely dmitry.bely at gmail.com
Tue Dec 15 02:58:08 PST 2009


On Tue, Dec 15, 2009 at 12:15 AM, Michael Collins <msc at freeswitch.org> wrote:
>
>
> On Mon, Dec 14, 2009 at 11:47 AM, Dmitry Bely <dmitry.bely at gmail.com> wrote:
>>
>> I'm playing with demo IVR from FreeSwitch distribution and have a
>> problem with language settings. I would like to use Russian as a
>> default language for voice messages so I set in vars.xml
>>
>>  <X-PRE-PROCESS cmd="set" data="default_language=ru"/>
>>
>> and installed Russian sound files. It works almost correctly: all
>> phrases are played in Russian, but not explicitly specified .wav
>> files; say for
>>
>>    <menu name="demo_ivr"
>>        invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
>>
>> I have
>>
>> 2009-12-14 22:17:57.506305 [ERR] mod_sndfile.c:194 Error Opening File
>>
>> [/opt/freeswitch/sounds/en/us/callie/ivr/ivr-that_was_an_invalid_entry.wav]
>> [System error : No such file or directory.]
>>
>> How to fix this and make it use the correct language?
>>
> What about this in vars.xml?
>
> <X-PRE-PROCESS cmd="set"
> data="sound_prefix=$${base_dir}/sounds/en/us/callie"/>

Yes, that does the job. Thank you! But it looks a bit inconsistent.
Path to sound files is also set in $${base_dir}/conf/lang/ru/ru.xml.
Why duplicate the settings? And another problem is that you cannot
easily switch the language for your voice menu.

- Dmitry Bely




More information about the FreeSWITCH-users mailing list