Telephone number or # key doesn't works
Posted: Wed May 06, 2009 5:07 am
Hi,
I've a problem on my vxml code. How do I authorize the user to enter a number and null string?
For example, the user can be input the telephone number or only #, but actually, the # causes nomatch event.
This my code:
I've a problem on my vxml code. How do I authorize the user to enter a number and null string?
For example, the user can be input the telephone number or only #, but actually, the # causes nomatch event.
This my code:
Code: Select all
<property name="timeout" value="20s" />
<property name="interdigittimeout" value="20s" />
<property name="inputmodes" value="dtmf" />
<property name="bargein" value="true" />
<property name="termtimeout" value="0.5s" />
<field name="msg">
<grammar root="ROOT" type="application/srgs+xml" mode="dtmf">
<rule id="ROOT" scope="public">
<one-of>
<item repeat="0-255">
<ruleref uri="#digit"/>
</item>
<item> # </item>
</one-of>
</rule>
<rule id="digit" scope="public">
<one-of>
<item> 0 </item>
<item> 1 </item>
<item> 2 </item>
<item> 3 </item>
<item> 4 </item>
<item> 5 </item>
<item> 6 </item>
<item> 7 </item>
<item> 8 </item>
<item> 9 </item>
<item> # </item>
</one-of>
</rule>
</grammar>
...
</field>