<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23588">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>had a similar problem with french, here is what I 
found that works great for us.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV>This did not work until I copied the sounds.xml file and the 
voicemail_ivr.xml file from /lang/en directory to fr directory.&nbsp; Probably 
you could just modify it but this was easy.</DIV><PRE style="LINE-HEIGHT: normal; WIDOWS: 1; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">The sounds.xml file in the fr directory was using speak_text instead of playing wav files and was looking for tts or cepstral.  </PRE><PRE style="LINE-HEIGHT: normal; WIDOWS: 1; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">I also had to modify the tree to the French wav files like so</PRE><PRE style="LINE-HEIGHT: normal; WIDOWS: 1; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">/usr/local/freeswitch/sounds/fr/us/callie</PRE><PRE style="LINE-HEIGHT: normal; WIDOWS: 1; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">We deploy freeswitch into a bilingual market, so this need to work out of the box</PRE><PRE style="LINE-HEIGHT: normal; WIDOWS: 1; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">Not sure if this is 100% the correct way to do it, but it does work.</PRE><PRE style="LINE-HEIGHT: normal; WIDOWS: 1; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">Darcy</PRE>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=victor.medina@cibersys.com 
  href="mailto:victor.medina@cibersys.com">Victor Medina</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=freeswitch-users@lists.freeswitch.org 
  href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 19, 2015 9:46 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Freeswitch-users] 
  Multilanguages in dialplan and voicemail</DIV>
  <DIV><BR></DIV>
  <DIV dir=ltr>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>Hi 
  guys!<BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>Im having 
  troubles trying to support multilanguages destinations in freeswitch dialplan 
  and voicemail.<BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>I have 
  modules correctly loaded in modules as:<BR><BR>&nbsp;&nbsp;&nbsp; &lt;load 
  module="mod_say_en"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;load 
  module="mod_say_es"/&gt;<BR><BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>In vars I 
  only have the following...<BR><BR>&lt;X-PRE-PROCESS cmd="set" 
  data="sound_prefix=$${sounds_dir}/en/us/callie"/&gt;<BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" 
  class=gmail_default><BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>And two 
  internal destinations defined as...<BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>Spanish 
  exts....<BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" 
  class=gmail_default><BR>&nbsp;&nbsp;&nbsp; &lt;extension 
  name="Local_Extension1"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition 
  field="destination_number" 
  expression="^([0-9][0-9][0-9])$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  .......................<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action 
  application="bridge" data="loopback/app=voicemail:default ${domain_name} 
  ${dialed_extension}"/&gt;<BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" 
  class=gmail_default>English.....<BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" 
  class=gmail_default><BR>&nbsp;&nbsp;&nbsp; &lt;extension 
  name="Local_Extension2"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition 
  field="destination_number" 
  expression="^(1[0-9][0-9][0-9])$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  .................<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action 
  application="bridge" data="loopback/app=voicemail:default ${domain_name} 
  ${dialed_extension}"/&gt;<BR><BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>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..<BR><BR>&nbsp; &lt;action application="set" 
  data="sound_prefix=$${sounds_dir}/es/mx/maria"/&gt;<BR>&nbsp; &lt;action 
  application="set" data="default_language=es"/&gt;<BR>&nbsp; &lt;action 
  application="bridge" data="loopback/app=voicemail:default ${domain_name} 
  ${dialed_extension}"/&gt;<BR><BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>I'm even 
  seeing correctly processed in console:<BR><BR>Dialplan: sofia/internal/<A 
  href="mailto:163@cibersys.com">163@cibersys.com</A> Action 
  sleep(1000)<BR>Dialplan: sofia/internal/<A 
  href="mailto:163@cibersys.com">163@cibersys.com</A> Action 
  set(sound_prefix=/opt/CloudVoice-vPBX/fsw14/sounds/es/mx/maria)<BR>Dialplan: 
  sofia/internal/<A href="mailto:163@cibersys.com">163@cibersys.com</A> Action 
  set(default_language=es)<BR>Dialplan: sofia/internal/<A 
  href="mailto:163@cibersys.com">163@cibersys.com</A> Action 
  bridge(loopback/app=voicemail:default ${domain_name} 
  ${dialed_extension})<BR><BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>Any ideas 
  on what could I do? Are things setted in vars.xml taking precedence ? For 
  example should I remove sound_prefix from vars?<BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default>Also... 
  any way to reload vars.xml?<BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" 
  class=gmail_default><BR><BR></DIV>
  <DIV style="FONT-FAMILY: courier new,monospace" class=gmail_default><BR 
  clear=all></DIV><BR>-- <BR>
  <DIV class=gmail_signature>
  <DIV dir=ltr>
  <DIV class=gmail_signature>
  <DIV dir=ltr><FONT size=+0><SPAN 
  style="FONT-FAMILY: courier new,monospace"><IMG 
  src="https://www.cibersys.com/imagenes/logotipo-cibersys-the-new-easy.png"><BR>Víctor 
  E. Medina M.<BR></SPAN></FONT>
  <DIV><FONT size=+0><SPAN 
  style="FONT-FAMILY: courier new,monospace">Software<BR></SPAN></FONT></DIV><FONT 
  size=+0><SPAN style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="DISPLAY: inline"><SPAN style="DISPLAY: inline"><IMG 
  style="PADDING-BOTTOM: 0px; MARGIN: 0px 2px; PADDING-LEFT: 0px; WIDTH: 20px; PADDING-RIGHT: 0px; HEIGHT: 20px; PADDING-TOP: 0px" 
  alt="Zoiper Click2Dial" src="http://www.zoiper.com/images/ZoiperHead20x20.png" 
  width=20 height=20><A href="zoiper://+584242914561">+58424 291 4561</A><IMG 
  style="PADDING-BOTTOM: 0px; MARGIN: 0px 2px; PADDING-LEFT: 0px; WIDTH: 28px; PADDING-RIGHT: 0px; HEIGHT: 16px; PADDING-TOP: 0px" 
  alt=ve src="http://www.zoiper.com/images/Click2DialFlags/ve.png" width=28 
  height=16></SPAN></SPAN><BR>BB #79A8AFA2 
  /@VMCibersys<BR><BR></SPAN></FONT></DIV></DIV></DIV></DIV></DIV>
  <P>
  <HR>

  <P></P>_________________________________________________________________________<BR>Professional 
  FreeSWITCH Consulting Services: 
  <BR>consulting@freeswitch.org<BR>http://www.freeswitchsolutions.com<BR><BR>Official 
  FreeSWITCH 
  Sites<BR>http://www.freeswitch.org<BR>http://confluence.freeswitch.org<BR>http://www.cluecon.com<BR><BR>FreeSWITCH-users 
  mailing 
  list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org</BLOCKQUOTE></BODY></HTML>