[Freeswitch-users] Multilanguages in dialplan and voicemail

Victor Medina victor.medina at cibersys.com
Thu Mar 19 16:46:51 MSK 2015


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 Action sleep(1000)
Dialplan: sofia/internal/163 at cibersys.com Action
set(sound_prefix=/opt/CloudVoice-vPBX/fsw14/sounds/es/mx/maria)
Dialplan: sofia/internal/163 at cibersys.com Action set(default_language=es)
Dialplan: sofia/internal/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?




-- 

Víctor E. Medina M.
Software
[image: Zoiper Click2Dial]+58424 291 4561 <zoiper://+584242914561>[image:
ve]
BB #79A8AFA2 /@VMCibersys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150319/af1dd37c/attachment.html 


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