Limit the reprompt
Posted: Tue Dec 12, 2006 2:00 pm
I have the following form which accepts 10 digit input from a caller. When the caller inputs nothing it reprompts forever. This is ok but I dont want to have a security issue in which a disatisfied customer could call in, set the phone down, and leave for the bar; charging us money by the minute. Is there anyway to make it disconnect after 4 minutes or maybe only reprompt 9 times?
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<form id="getNumber">
<property name="termmaxdigits" value="true"/>
<field name="enterNumber" type="digits?length=10">
<prompt>Please enter your 10 digit phone number on your numeric keypad</prompt>
<filled>
<assign name="document.tempPhoneNumber" expr="enterNumber"/>
<goto next="#confirmMobileNumber"/>
</filled>
<noinput>
<reprompt/>
</noinput>
</field>
</form>
</vxml>