We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

delay between two JSP files

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
yunyun
Posts: 21
Joined: Mon Jan 23, 2006 8:31 pm

delay between two JSP files

Post by yunyun »

Hi,

I have couples of JSP files in an application. I could feel a delay of up to 5 seconds when it moves between JSP files. I add

Code: Select all

<property name="documentfetchhint" value="prefetch"/>
in the root JSP file of the application. But it didn't help much.

Thanks,

Yunyun

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR platform does not currently implement prefetch

Post by support »

Hello,

The Plum IVR platform does not currently implement prefetch. If you are transitioning between JSP pages you should be doing so via POST (in which case it wouldn't be prefetched anyway). To minimize latency you should either use static pages (.vxml or .xml not .jsp) for static content or include multiple forms in a single page and perform local page transitions:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
	<form id="form1">
		<field name="field1" type="boolean">
			<prompt>Press 1 or 2</prompt>
			<filled>
				<if cond="field1">
					<goto next="#form2"/>
				<else/>
					<goto next="#form3"/>
				</if>
			</filled>
		</field>
	</form>
	<form id="form2">
		<block>
			<prompt>This is form 2</prompt>
		</block>
	</form>
	<form id="form3">
		<block>
			<prompt>This is form 3</prompt>
		</block>
	</form>
</vxml>
This should minimize the delay experienced by the user. Also, you should look at the last IVR call log to determine exactly what is causing the delay. If it is inherent in the JSP processing and you have to perform the page transition you should add fetch audio to your <goto>/<submit> tag.

Regards,
Plum Support

Post Reply