builtin grammar with # and * ?
Posted: Thu Sep 29, 2005 9:06 am
I'd like to use the builtin grammar 'digits' with its length and maxlength paramters. I've noticed that these parameters cause the result to return immediately when the first 'n' digits are entered, and drops any remaining input. this is the desired behavior of our application.
However, the digits grammar does not support '#' or '*'. Is there a way to get this desired behavior while including those keys?
If I try to construct my own grammar, i do not get this "immediate return" as I would with digits?length=. The input must match exactly what the grammar specifies, and there is a delay between the last keypress and the termtimeout event; this causes some latency in our application, as well as the undesired behavior in returning the wrong number of digits (if the user continues pressing more than 'n' keys).
ideally, there is a builtin grammar which includes all dtmf tones, including # and *, with which i can use length and maxlength.
However, the digits grammar does not support '#' or '*'. Is there a way to get this desired behavior while including those keys?
If I try to construct my own grammar, i do not get this "immediate return" as I would with digits?length=. The input must match exactly what the grammar specifies, and there is a delay between the last keypress and the termtimeout event; this causes some latency in our application, as well as the undesired behavior in returning the wrong number of digits (if the user continues pressing more than 'n' keys).
ideally, there is a builtin grammar which includes all dtmf tones, including # and *, with which i can use length and maxlength.