Default Value: false

Enables the behavior “termchar Empty When Grammar Must Terminate” described in VoiceXML 2.0 Specification - Appendix D. An immediate timeout on dtmf collection for grammars builtin:digits (with length or maxlength set) or builtin:boolean grammars. If any other grammars are active during recognition this behavior is disabled.


<?xml version="1.0"?>
<vxml version="2.0">
  <property name="termmaxdigits" value="true"/>
  <property name="interdigittimeout" value="3s"/>
    <field name="myfield" type="digits?length=5">
        Enter up to five ones or twos.
        <prompt bargein="false">
          You entered <value expr="myfield"/>.
        You did not enter enough ones or twos.
        You did not enter anything.


From this example, by setting “termmaxdigits” to true, we can allow for no timeout as soon as the user has matched the maximum number of digits. If the user enters 5 numbers, the behavior of the application immediately returns a response to the user. If the user entered less than 5 numbers of ones or twos, the application waits for 3 seconds from the “interdigittimeout” property and returns a <nomatch> after 3 seconds has passed with nothing inputted. If the user entered more than 5 numbers, the application returns just the first 5 digits that were entered by the user.



Last updated