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@cibersys.com Action sleep(1000) Dialplan: sofia/internal/163@cibersys.com Action set(sound_prefix=/opt/CloudVoice-vPBX/fsw14/sounds/es/mx/maria) Dialplan: sofia/internal/163@cibersys.com Action set(default_language=es) Dialplan: sofia/internal/163@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? -- Víctor E. Medina M. Software [image: Zoiper Click2Dial]+58424 291 4561 <zoiper://+584242914561>[image: ve] BB #79A8AFA2 /@VMCibersys
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/callieWe deploy freeswitch into a bilingual market, so this need to work out of the boxNot sure if this is 100% the correct way to do it, but it does work.Darcy ----- Original Message ----- From: Victor Medina To: FreeSWITCH Users Help 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@cibersys.com Action sleep(1000) Dialplan: sofia/internal/163@cibersys.com Action set(sound_prefix=/opt/CloudVoice-vPBX/fsw14/sounds/es/mx/maria) Dialplan: sofia/internal/163@cibersys.com Action set(default_language=es) Dialplan: sofia/internal/163@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? -- Víctor E. Medina M. Software +58424 291 4561 BB #79A8AFA2 /@VMCibersys ------------------------------------------------------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@cibersys.com> To: FreeSWITCH Users Help <mailto:freeswitch-users@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@cibersys.com <mailto:163@cibersys.com> Action sleep(1000) Dialplan: sofia/internal/163@cibersys.com <mailto:163@cibersys.com> Action set(sound_prefix=/opt/CloudVoice-vPBX/fsw14/sounds/es/mx/maria) Dialplan: sofia/internal/163@cibersys.com <mailto:163@cibersys.com> Action set(default_language=es) Dialplan: sofia/internal/163@cibersys.com <mailto:163@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?
participants (3)
-
Darcy Primrose
-
Michael Jerris
-
Victor Medina