cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

How to change VoiceXML root document property in the callflow

80
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: Bhaskar Narayanakere on 04-09-2008 07:57:14 PM
I'm using CallStudio 4.1.x to develop applications. In order to handle ASR/TTS failure, I have code to detect failures (as a hot event) and change to backup server. The change applies only to the voice element it is defined in.
Example: com.cisco.asr-server -> rtsp://<backup-asr>/media/recognizer

How to make this change applicable for all voice elements?. I was told the only way is to define a variable in root doc for this property.

Has anyone done this? Appreciate if you could share insight into this

Thanks in advance
  • Bhaskar

Subject: Re: How to change VoiceXML root document property in the callflow
Replied by: Janine Graves on 04-09-2008 08:58:04 PM
How are you changing to a backup asr/tts server? Is it by setting a VXML
property 'com.cisco.asr-server'?
The only way to make a property (like this one) global is to set it in
the root document.
Unfortunately, the root document is only created at the beginning of the
visit to an application.
So, yes in this case, it seems as if you're only setting it for one
voice element.

Perhaps the 'easiest' way around the problem, is to set that property
com.cisco.asr-server in EVERY voice element and set it to the value of
some variable {Data.Session.asrserver}
Then you'd just need to change the value of this variable to switch servers.

Subject: Re: How to change VoiceXML root document property in the callflow
Replied by: Bhaskar Narayanakere on 04-09-2008 11:06:46 PM
Janine,

Thank you for the suggession. That is what I am doing right now after realizing that the change is local to voice element where defined.

I was hoping if there was an another way by set/change in one common place.

  • Bhaskar

Subject: Re: How to change VoiceXML root document property in the callflow
Replied by: Janine Graves on 04-09-2008 11:15:04 PM
You could try doing an App Transfer and passing information about the
new asr server and where you should be in the application.
It's kind of weird, but it could work.

You'd have to use Java and create a start of call class that sets the
property in the root document based on this information.

Subject: RE: Re: How to change VoiceXML root document property in the callflow
Replied by: Farhang Farid on 08-04-2010 04:35:32 PM
Janine/Bhaskar,
 
Have either of you been able to successfully override a root document property ? 
 
CreatePlease to create content
Content for Community-Ad
FusionCharts will render here