Multiple digit dtmf with grammar
Posted: Mon Jun 21, 2010 4:04 pm
I am using grammar to determine a possible range of 13 choices -
<grammar type="application/x-jsgf" mode="dtmf" maxdigits="2">
( 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 )+
</grammar>
for single digit responses it works fine -
<filled>
<if cond="location==1">
<prompt>
You entered <value expr="location"/>.
</prompt>
</if>
This will evaluate to true if a 1 is pressed
<if cond="location==10">
<prompt>
You entered <value expr="location"/>.
</prompt>
</if>
But this if never evaluates to true if 10 is pressed
What am I missing
<grammar type="application/x-jsgf" mode="dtmf" maxdigits="2">
( 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 )+
</grammar>
for single digit responses it works fine -
<filled>
<if cond="location==1">
<prompt>
You entered <value expr="location"/>.
</prompt>
</if>
This will evaluate to true if a 1 is pressed
<if cond="location==10">
<prompt>
You entered <value expr="location"/>.
</prompt>
</if>
But this if never evaluates to true if 10 is pressed
What am I missing