I do not want this 5 sec delay here so i added termmaxdigits to true but it also does not work. After some trying i came to know that if i remove the <grammer> tag then it works as expected. Where is the problem in the code? OR why grammar tag is causing problem with interdigittimeout?
Here is the code.
<?xml version="1.0"?>
<vxml version="2.0">
<property name="termmaxdigits" value="true"/>
<property name="interdigittimeout" value="5s"/>
<form>
<field name="myfield" type="digits?length=5">
<!-- Multiple grammars can be specified either by including -->
<!-- several grammar blocks within the field item or by -->
<!-- specifying a built-in grammar with the "field" tag's -->
<!-- "type" attribute. -->
<grammar type="application/x-jsgf" mode="dtmf">
1 | 2
</grammar>
<grammar type="application/x-jsgf" mode="voice">
one | two
</grammar>
<prompt>
Say or enter any number of length 5.
</prompt>
<filled>
You entered <value expr="myfield"/>.
</filled>
<nomatch>
You did not say or enter any ones or twos.
<reprompt/>
</nomatch>
<noinput>
You did not enter anything.
<reprompt/>
</noinput>
</field>
</form>
</vxml>
Code: Select all