Field type="number" throws nomatch
Posted: Wed Dec 11, 2013 12:03 pm
I'm having a problem where I'm getting a nomatch to any utterance for <field type="number">. If I change it to "digits", it works fine. Here's my simplified code, with some dubugging TTS added in:
Using the above code, no matter what I enter, it responds with "No match found for." (The platform recognizes that I provided an utterance, but it's not recorded in the commentNumber variable.)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">
<property name="fetchtimeout" value="15s"/>
<property name="termmaxdigits" value="true"/>
<form id="skipTo">
<var name="orgId" expr="1008" />
<var name="key" expr="'06'" />
<var name="commentCount" expr="7" />
<var name="tries" expr="0"/>
<catch event="noinput">
No input received.
<if cond="++tries < 3">
<clear/>
<reprompt/>
<else/>
I give up.
<disconnect />
</if>
</catch>
<catch event="nomatch">
No match found for <value expr="commentNumber" />.
<if cond="++tries < 3">
<clear/>
<reprompt/>
<else/>
I give up.
<disconnect />
</if>
</catch>
<field name="commentNumber" type="number">
<property name="timeout" value="6s"/>
<property name="interdigittimeout" value="8s"/>
<property name="termtimeout" value="4s"/>
<prompt bargein="true">
Please say a number between 1 and <value expr="commentCount" />
for the comment you want to hear, or enter it on the keypad
followed by the pound sign.
</prompt>
</field>
<block>
<if cond="commentNumber == 0 || commentNumber > commentCount">
<throw event="nomatch" />
<else />
You said <value expr="commentNumber" />.
<submit namelist="orgId key commentNumber" next="goToMsg" />
</if>
</block>
</form>
</vxml>