cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
220
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Sethuramalingam Balasubramanian on 01-11-2010 01:48:14 PM
I am trying to use the Subdialog invoke and set the maxage VXML property as zero to disable the VXML getting cached in the VXML G/W. Actually I wanted the maxage to be part of the subdialog attribute, whereas it appears in the entire VXML page and the caching is not disabled. How do I make this appear as part of subdialog attribute along with subdialog name?
 

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" application="/CVP/Server?audium_root=true&amp;calling_into=APP1&amp;session_id=192.168.10.38.1288591205218.28.APP1">
  <property name="maxage" value="0" />
  <form id="audium_start_form">
    <block>
      <assign name="audium_vxmlLog" expr="''" />
      <assign name="audium_element_start_time_millisecs" expr="new Date().getTime()" />
      <goto next="#start" />
    </block>
  </form>
  <form id="start">
    <subdialog name="subdialog" src="http://172.16.3.103:8080/test/process9.vxml">
      <param name="a" value="1" />
      <filled>
        <submit next="/CVP/Server" method="post" namelist="audium_vxmlLog subdialog subdialog.b" />
      </filled>
    </subdialog>
  </form>
</vxml>

Subject: Re: New Message from Sethuramalingam Balasubramanian in Customer Voice Port
Replied by: Janine Graves on 01-11-2010 02:37:11 PM
Since Subdialogs return dynamic VoiceXML pages, they most likely will
not be cached on the VoiceXML Gateway. This is just like when you invoke
your regular Studio application, each VoiceXML page going to the gateway
is NOT cached on the gateway. So, you shouldn't have to worry about
setting the maxage property to 0.

There's no way to insert a new attribute into the subdialog tag without
extending the Java.
But, the way VoiceXML works, the subdialog call should inherit the
maxage property set to 0 in the document.

You can also set the maxage property in the root document of the
Subdialog application.

But, again, you should NOT have to do this because these dynamic vxml
pages should not be getting cached on the gateway.

Janine




On 11/1/2010 9:48 AM, Cisco Developer Community Forums wrote:
> Sethuramalingam Balasubramanian has created a new message in the forum
> "General Discussion - All Versions":
>
> --------------------------------------------------------------
> I am trying to use the Subdialog invoke and set the maxage VXML
> property as zero to disable the VXML getting cached in the VXML G/W.
> Actually I wanted the maxage to be part of the subdialog attribute,
> whereas it appears in the entire VXML page and the caching is not
> disabled. How do I make this appear as part of subdialog attribute
> along with subdialog name?
> Â
>
> <?xml version="1.0" encoding="UTF-8"?>
> <vxml version="2.0"
> application="/CVP/Server?audium_root=true&amp;calling_into=APP1&amp;session_id=192.168.10.38.1288591205218.28.APP1">
> Â Â <property name="maxage" value="0" />
> Â Â <form id="audium_start_form">
>     <block>
>       <assign name="audium_vxmlLog" expr="''" />
>       <assign name="audium_element_start_time_millisecs" expr="new
> Date().getTime()" />
>       <goto next="#start" />
>     </block>
> Â Â </form>
> Â Â <form id="start">
>     <subdialog name="subdialog"
> src="http://172.16.3.103:8080/test/process9.vxml">
>       <param name="a" value="1" />
>       <filled>
>         <submit next="/CVP/Server" method="post"
> namelist="audium_vxmlLog subdialog subdialog.b" />
>       </filled>
>     </subdialog>
> Â Â </form>
> </vxml>
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/message/2698433>
>
> or simply reply to this email.

--
Janine Graves

Subject: RE: Re: New Message from Sethuramalingam Balasubramanian in Customer Voice
Replied by: Hemal Mehta on 01-11-2010 03:06:31 PM
Subdialogs are typically used to for dynamic voicemxl page, however you can also call a plain vanilla vxml page from the subdialog which is not dynamic.  However not 100% sure if this gets cached or not as it is probably dependent on the way the vb is implement and may vary from IVR to IVR.
It may be good to check this with Cisco.

Subject: RE: SubDialog Invoke - maxage
Replied by: Hemal Mehta on 01-11-2010 02:09:50 PM
Set this property directly in process9.vxml.  That way it will set it only for the subdialog execution.  In case you are using this file from elewhere too and do not want this property to be set each time, pass a parameter from subdialog which indicates when to set it and when not to. You can check that value in process9.vxml and enable or diable it accordingly.

Subject: Re: SubDialog Invoke - maxage
Replied by: Sethuramalingam Balasubramanian on 02-11-2010 01:14:04 PM
Thanks for your responses. I am using a static VXML file. What other properties do I need to set along with maxage?
 

maxage and maxstale should be zero or -1 in the process9.vxml?
 
http://www.w3.org/TR/voicexml20/#dml6.1
 

 
 

Subject: RE: Re: SubDialog Invoke - maxage
Replied by: Sethuramalingam Balasubramanian on 02-11-2010 02:15:43 PM
setting with zero is not working.

Subject: RE: Re: SubDialog Invoke - maxage
Replied by: Sethuramalingam Balasubramanian on 02-11-2010 02:38:21 PM
This static VXML file would reside in a customer location and the contents would vary every day and not the name of the .vxml file

Subject: RE: Re: SubDialog Invoke - maxage
Replied by: Hemal Mehta on 02-11-2010 02:51:32 PM
Which version of CVP and corresponding gateway are you using. I have seen some caching issues swith audio file and the new file does not get reflected.  Try the command "set http client cache stale" if your gateway vers supports it.
Another way, you can try and which should def work, make the name of your file dynamic, assuming that the file remains same for the whole day and does not change many times in the day. For example you can have a file named
post.Nov02_2010
 
In your program just append the system date in whatever format you want to "post"
Also you have to make sure that the client sets the file with same name and date appended to it. You can use either javascript or jsp/java code in vxml to do this.

Subject: RE: Re: SubDialog Invoke - maxage
Replied by: Hemal Mehta on 02-11-2010 02:13:44 PM
Setting mxage to zero willl insure that always a new file is fetched.

Subject: RE: Re: SubDialog Invoke - maxage
Replied by: Hemal Mehta on 02-11-2010 02:31:22 PM
If it is a static file, why don't u won't to cache it?
 

Subject: RE: Re: SubDialog Invoke - maxage
Replied by: Kevin Buckley on 02-11-2010 04:47:00 PM
If your gateway does not support "set http client cache stale", perhaps you are running afoul of datestamp issues?
 
This will be relevant to you only if you are swapping in and out a set of VXML files that have been created already.
- If you are swapping in a file that was created before the current VXML file, the router may keep the version in memory with the more recent timestamp.
 
- I ran into this issue with audio files.
 
If this is affecting you, you can 'touch' the datetimestamp (setting it to the current date) for process9.vxml by using the DOS command:
 
COPY process9.vxml /B + ,, /Y
 
Regards,
Kevin
 
 

Subject: RE: Re: SubDialog Invoke - maxage
Replied by: Sethuramalingam Balasubramanian on 04-11-2010 09:43:59 AM
I am using CVP 7.0(2) and VXML Gateway version - c2800nm-ipvoicek9-mz.124-20.T5.bin
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links