This document was generated from CDN thread
Created by: null on 18-06-2003 07:25:09 PM
Phi-Di wrote:
I am using your VoiceXml Insert element to play one .vxml file as greeting in both language English & French. When I modified this file, I did save, generate the application and even went to admin directory of this application to update the application, restarted the Audium Builder, restarted Tomcat, the changes that I made never played. Please let me know what else I should do to make this changes to be played.
Thanks
Subject: RE: VoiceXML Insert Element
Replied by: null on 18-06-2003 07:32:07 PM
Phi-Di,
remember, since you are editing a static VoiceXML file, it is not part of the Audium framework. So runing the update script won't make a difference since that script only affects Audium files.
Most likely what is happenning is the voice browser is caching the static VoiceXML page. So when you make a change to it you don't hear the difference because the voice browser is using the cached version. Restarting the app server will not make a difference because the cache is on the voice browser side (the VoiceGenie box).
There are several options for you. You can flush the cache in the VoiceGenie box, you can change the filename of the VoiceXML file so that you are referring to a page that is not in the cache, or you can add a VoiceXML property in the VoiceXML page that turns off caching. So the VoiceXML would look like this:
[code:1:aae23e69ee]
<property name="caching" value="safe"/>
[/code:1:aae23e69ee]
You should look into the maxage and maxstale attributes described in the VoiceXML 2.0 specification to give you more control over caching. Also look at the voice browser documentation to see what else you can do.
To test out that it is indeed the caching of the browser, change the name of the VoiceXML document and change the Audium application to point to that new name and see if you hear the change. If you do, it was the browser cache that was the culprit.
Hope this helps!