Interdigittimeout problem with key pound
Posted: Tue May 19, 2009 5:26 am
Hi,
I've always a problem with the key pound.
I've this code:
It's work perfectly except the key pound.
After I input the dtmf for the message, and press key pound, the time left 20s (interdigittimeout).
I would like to get the filled section immediately after the key pound with this grammar.
The problem is the termchar property?
Can you help me?
Thanks.
I've always a problem with the key pound.
I've this code:
Code: Select all
<form id="main">
<field name="msg">
<property name="inputmodes" value="dtmf" />
<property name="termchar" value="" />
<property name="interdigittimeout" value="20s" />
<property name="termtimeout" value="0s" />
<prompt>
<audio expr="media_message">
</audio>
</prompt>
<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>
<filled>
<if cond="msg$.utterance.length > longueur_max">
<audio expr="nom_media" />
<if cond="try==2">
<audio src="media/sorry.wav" />
<goto next="#fin" />
<else />
<assign name="try" expr="try+1" />
<clear namelist="msg" />
<reprompt />
</if>
<elseif cond="msg=='#'" />
<if cond="rds==true">
<audio src="media/au_moins1_chiffre.wav" />
<throw event="nomatch" />
<else />
<goto next="#form2" />
</if>
<else />
<if cond="msg.indexOf('#') != -1">
<submit next="#confirm_msg" namelist="msg" />
<else />
<throw event="nomatch" />
</if>
</if>
</filled>
<noinput>
<assign name="try" expr="try+1" />
<if cond="try==2">
<audio src="media/sorry_mais.wav" />
<goto next="#end" />
<else />
<clear namelist="msg" />
<reprompt />
</if>
</noinput>
<nomatch>
<assign name="try" expr="try+1" />
<if cond="essai==3">
<audio src="media/sorry.wav" />
<goto next="#fin" />
<else />
<clear namelist="msg" />
<reprompt />
</if>
</nomatch>
</field>
</form>
After I input the dtmf for the message, and press key pound, the time left 20s (interdigittimeout).
I would like to get the filled section immediately after the key pound with this grammar.
The problem is the termchar property?
Can you help me?
Thanks.