I try to create an application like this:
Code: Select all
<property name="timeout" value="10s"/>
<property name="inputmodes" value="dtmf"/>
<property name="bargin" value="false" />
<field name="saisie_msg">
<grammar root="saisie_msg" type="application/srgs+xml" mode="dtmf">
<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>
</one-of>
</rule>
<rule id="saisie_msg" scope="public">
<one-of>
<item>
<item repeat="0-255">
<ruleref uri="#digit" />
</item>
</item>
</one-of>
</rule>
</grammar>
<filled>
<if cond="saisie_msg$.utterance=='#'">
...
</if>
</filled>
I would like to call a submit command immediately after the user press # pound, or other choice (like numerics chars).
Can you help me?
Thanks By advance.