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).
[code]
<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 < 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>
[/code]
This is to specify the first digit timeout:
[color=blue]<prompt bargein="true" xml:lang="en-US" timeout="12s">[/color]
I guess you can use this to configure the input timeout:
[color=blue]<property name="interdigittimeout" value="3s"/>[/color]
Everytime you use the submit next, you open another port from the form block:
[color=blue]<submit next="NextPage.asp" method="post" namelist="BlockName"/>[/color]
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..