« Back to TCL-API

RE: multiple language IVR

Combination View Flat View Tree View
Threads [ Previous | Next ]
I'm having a little trouble setting up multiple languages on my gw. I set up the paramspace for my application as below:
 
application
service test tftp://192.168.1.3/test1.tcl
  paramspace spanish index 2
  paramspace english language en
  paramspace english index 1
  paramspace spanish language sp
  paramspace english location tftp://192.168.1.3/
  paramspace spanish location tftp://192.168.1.3/sp
 
When i tried to switch between the 2 prefixes in my TCL script via "infotag set med_language prefix sp", it generated error (unkown prefix).
 
Can anyone help me with this? some examples would be great.

Hi

Please try either of the following and see whether it resolves your issue.

infotag set med_language prefix sp
infotag set med_location sp 1 tftp://192.168.1.3/sp

(or)

infotag set med_language_map 1 sp
infotag set med_location sp 1 tftp://192.168.1.3/sp
infotag set med_language 1

Thanks,
Anusha

I just wanted to know. when i do "media play %10", some translaiton is happening here. what I dont understand is where the IOS get the script to do that? I did't provide a script to do so.
 
And how will the script know what to do if i have a different language?

Hi,
 
"infotag set med_language [index | prefix prefix]" sets the current active language for media playout. you can use this command to change the language. please refer programming guide for more information.
 
Thanks,
Raghavendra

RE: multiple language IVR
Answer
12/11/12 10:20 PM as a reply to Raghavendra Gutty Veeranagappa.
Raghavendra Gutty Veeranagappa:
Hi,
 
"infotag set med_language [index | prefix prefix]" sets the current active language for media playout. you can use this command to change the language. please refer programming guide for more information.
 
Thanks,
Raghavendra

 
I did so. but what i'm facing is when i do "media play %a10", nothing is played out. That is why i wanted to understand where the translation actually happens.

I forgot to mention that i was looking at the debug, i didn't see the system was complainging about the missing ivr prompts. so clearly, after i do "infotag set med_language [index | prefix prefix]", the IOS doesn't seem to know what to do with "media play %a10".

vinh nguyen:
I'm having a little trouble setting up multiple languages on my gw. I set up the paramspace for my application as below:   application service test tftp://192.168.1.3/test1.tcl   paramspace spanish index 2   paramspace english language en   paramspace english index 1   paramspace spanish language sp   paramspace english location tftp://192.168.1.3/   paramspace spanish location tftp://192.168.1.3/sp   When i tried to switch between the 2 prefixes in my TCL script via "infotag set med_language prefix sp", it generated error (unkown prefix).   Can anyone help me with this? some examples would be great.

 
I think you need audio files
Attachments:

By the way did you confgure "prefix" ?
  param welcome-prompt _bacd_welcome.au
  paramspace english index 1
  paramspace english prefix en
  paramspace english location tftp://tftp/au/
 

here's my configuration:
  paramspace english index 1
  paramspace english language en
  paramspace english location tftp://tftp/en/
  paramspace english index 2
  paramspace english language fr
  paramspace english location tftp://tftp/fr/
  paramspace english index 3
  paramspace english language sp
  paramspace english location tftp://tftp/sp/
 
The funny thing is english and french is working fine (media play %a10). when i added spanish, i couldn't get "media play %a10" to work. The audio files are there. This is why im confused what exactly happens when tcl sees "%a10"? how does it translate this into IVR?
what is the difference between paramspace english language sp and paramspace english prefix sp?
 

Sorry. There is no "paramspace english prefix sp".  It not for this.<strong id="aui_3_4_0_1_1250">

I think the confiuration should be:
  paramspace english index 1
  paramspace english language en
  paramspace english location tftp://tftp/en/
  paramspace french index 2
  paramspace french language fr
  paramspace french location tftp://tftp/fr/
  paramspace spanish index 3
  paramspace spanish language sp
  paramspace spanish location tftp://tftp/sp/
 
http://www.cisco.com/en/US/docs/ios/voice/ivr/configuration/guide/tcl_c.html

my mistake that was my typo. that is exactly what I have....

The funny thing is english and french is working fine (media play %a10). when i added spanish, i couldn't get "media play %a10" to work. The audio files are there. This is why im confused what exactly happens when tcl sees "%a10"? how does it translate this into IVR?

What could be wrong here?

I see it now
"•<em class="cArgument">language—Name of the language package being configured. There are three built-in language packages: Chinese, English, and Spanish. Other languages may be supported by use a of Tcl language script."

so this is why. i have configured these 3 languages by luck and they all worked without the need of any extra translation script.

do "sh call language voice" see if there is anything wrong.

Script Name : spanish
       URL  : builtin:package_spanish.C
       Type : Package
       State: Registered
       Life : Builtin
       Exec Instances: 0

  Parameters registered under spanish namespace:
  name                 type  default value   description
  language             S     sp              The language code of this language
  index                S     -1              The index of this language
  location             S     flash:          The URI of the audio files for this language
  prefix               S     sp              The prefix of this language


 

We can include some more not builtin languages using language package CLI as below,
 
(config)#application

(config-app)#package cantonese builtin:lang_package     <---- type in  "builtin:lang_package" exactly

(config-app-param)#end