I have a case where in i need to get the some user input as digits to here different prompts. But in case if you enetr other than whats not mentioned in the VXML then the call gets hanged. Please let me know how to get rid of this issue. The VXML is as follows.
Code: Select all
<form id="menuresult">
<block>
<prompt>
<voice name="crystal">
<break size="medium" />Your next payment of <say-as type="currency">$50</say-as> is scheduled for 12/18/2006
</voice>
</prompt>
</block>
<field name="myfield" type="digits?length=1">
<prompt>
<voice name="crystal">
<break size="medium" />Press or Say one to hear this again<break size="medium" />Press or Say 2 to go to the Previous Menu.<break size="medium" />Press or Say Star to go to the Main Menu
</voice>
</prompt>
<grammar>1|2|"*"|"star"</grammar>
<filled>
<if cond="myfield=='1'">
<goto next="#menuresult" />
<elseif cond="myfield=='2'" />
<goto next="#submenu" />
<elseif cond="myfield=='star'" />
<goto next="#mainmenu" />
<elseif cond="myfield=='*'" />
<goto next="#mainmenu" />
</if>
</filled>
</field>
</form>
Please let us know how to handle this situation.
Thanks,
-Awaneesh