[Freeswitch-users] Multilanguages in dialplan and voicemail

Michael Jerris mike at jerris.com
Fri Mar 20 16:53:12 MSK 2015


That change should be put into tree.  We dist FR sound files, we should have those phrase macros in tree that match those files.  Could you create a pull request with this update?

> On Mar 20, 2015, at 8:30 AM, Darcy Primrose <fs at voice2net.ca> wrote:
> 
> had a similar problem with french, here is what I found that works great for us.
>  
> This did not work until I copied the sounds.xml file and the voicemail_ivr.xml file from /lang/en directory to fr directory.  Probably you could just modify it but this was easy.
> The sounds.xml file in the fr directory was using speak_text instead of playing wav files and was looking for tts or cepstral.  
> I also had to modify the tree to the French wav files like so
> /usr/local/freeswitch/sounds/fr/us/callie
> We deploy freeswitch into a bilingual market, so this need to work out of the box
> Not sure if this is 100% the correct way to do it, but it does work.
> Darcy
>  
>> ----- Original Message ----- 
>> From: Victor Medina <mailto:victor.medina at cibersys.com>
>> To: FreeSWITCH Users Help <mailto:freeswitch-users at lists.freeswitch.org>
>> Sent: Thursday, March 19, 2015 9:46 AM
>> Subject: [Freeswitch-users] Multilanguages in dialplan and voicemail
>> 
>> Hi guys!
>> 
>> Im having troubles trying to support multilanguages destinations in freeswitch dialplan and voicemail.
>> 
>> I have modules correctly loaded in modules as:
>> 
>>     <load module="mod_say_en"/>
>>     <load module="mod_say_es"/>
>> 
>> 
>> In vars I only have the following...
>> 
>> <X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>
>> 
>> 
>> 
>> And two internal destinations defined as...
>> 
>> Spanish exts....
>> 
>>     <extension name="Local_Extension1">
>>       <condition field="destination_number" expression="^([0-9][0-9][0-9])$">
>>       .......................
>>       <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>
>> 
>> English.....
>> 
>>     <extension name="Local_Extension2">
>>       <condition field="destination_number" expression="^(1[0-9][0-9][0-9])$">
>>       .................
>>       <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>
>> 
>> 
>> I need that Local_Extension1 have a spanish VoiceMail Voice and Local_Extension2 have a english VoiceMails. I have tried explicitly setting languages in each of the dialplan sections like..
>> 
>>   <action application="set" data="sound_prefix=$${sounds_dir}/es/mx/maria"/>
>>   <action application="set" data="default_language=es"/>
>>   <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>
>> 
>> 
>> I'm even seeing correctly processed in console:
>> 
>> Dialplan: sofia/internal/163 at cibersys.com <mailto:163 at cibersys.com> Action sleep(1000)
>> Dialplan: sofia/internal/163 at cibersys.com <mailto:163 at cibersys.com> Action set(sound_prefix=/opt/CloudVoice-vPBX/fsw14/sounds/es/mx/maria)
>> Dialplan: sofia/internal/163 at cibersys.com <mailto:163 at cibersys.com> Action set(default_language=es)
>> Dialplan: sofia/internal/163 at cibersys.com <mailto:163 at cibersys.com> Action bridge(loopback/app=voicemail:default ${domain_name} ${dialed_extension})
>> 
>> 
>> Any ideas on what could I do? Are things setted in vars.xml taking precedence ? For example should I remove sound_prefix from vars?
>> 
>> Also... any way to reload vars.xml?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150320/80fccf1e/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list