I want to get two kinds of input from users. If users enter a 7-digit number with a ending pound key, then they will be redirected to a.vxml. If they enter just a star key, they will be redirected to b.vxml. And I want to give users enough time to enter the 7-digit number so I set the "interdigittimeout" as 10 seconds while the default is 1 second. My question is that how I can stop the input immediately right after users enter a star key. Currently it still waits for 10 seconds to close the input after getting a star key.
Code: Select all
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<link next="b.vxml">
<grammar>"*"</grammar>
</link>
<property name="interdigittimeout" value="10s"/>
<form>
<field name="number" type="digits">
<prompt>Please enter your account number.</prompt>
<filled>
<submit next="a.vxml" method="get" namelist="number"/>
</filled>
</field>
</form>
</vxml>