Help with GVP application

I’m building a GVP application with Genesys Studio and have a requirement to change the value of a couple of timeouts…

The first is in a call to an external URL where an ASR application runs. The requirement is to specify fetchtimeout=“2s” on the section of the form. It looks like this can be set in the rootdocument rootmap properties.

Do these defintions propogate to subcallflow URL calls? It it doesn’t, is there a way to embed the subdialog in a code block or is there an example somewhere to call the form using a FORM block and to change the number of out ports to 1 so that on return from the form the application can continue?

Also, the application needs to specify a noinput timeout of 8 seconds. Where would this be specified?

Cheers :slight_smile:

Hi BenTaylor,

Bellow you’ll find the code we used to capture 14 digits, and after each digit the person dialed GVP would repeat it (as an echo).


<vxml version="2.1" application="STUDIO_ROOTDOCUMENT" xmlns="http://www.w3.org/2001/vxml" xmlns:telera="http://www.telera.com/vxml/2.0/ext/20020430" xmlns:genesys="http://www.genesyslab.com/vxml/2.0/ext/20020430" xml:lang="en-US">
	<script src="Languages/en-US/PlayBuiltinType.js"/>
	<var name="pin" expr="''"/>
	<var name="BlockName" expr="''"/>
	<form>
		<block name="INPUT1P0">
			<prompt bargein="true" xml:lang="en-US" timeout="12s">
				<audio src="voxfiles/F77.vox"/>
			</prompt>
		</block>
		<field type="digits?length=1" name="getPin">
			<filled>
				<prompt>
					<foreach item="thePrompt" array="PlayBuiltinType(lastresult$.interpretation, 'digits')">
						<audio expr="thePrompt"/>
					</foreach>
				</prompt>
				<assign name="pin" expr="pin + lastresult$.interpretation"/>
				<assign name="BlockName" expr="pin"/>
				<if cond="pin.length &lt; 14">
					<clear namelist="getPin"/>
					<assign expr="pin" name="BlockName"/>
				</if>
			</filled>
		</field>
		<filled>
			<submit next="NextPage.asp" method="post" namelist="BlockName"/>
		</filled>
	</form>
	<catch event="noinput">
		<submit next="NoInput.asp" method="post" namelist="BlockName"/>
	</catch>
	<catch event="nomatch">
		<goto next="NoMatch.asp"/>
	</catch>
</vxml>

This is to specify the first digit timeout:

I guess you can use this to configure the input timeout:

Everytime you use the submit next, you open another port from the form block:

BlockName = name of the form block in Studio
NextPage.asp = name of the page you are going to, it has to be the name of the next block + .asp

In my case, we had 3 ports from this block.

Hope this helped you a little..

1 Like