Page 1 of 1

Limit the reprompt

Posted: Tue Dec 12, 2006 2:00 pm
by brent.russell
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>

Disconnect from IVR system

Posted: Tue Dec 12, 2006 2:33 pm
by support
You can specify an additional <noinput> block with the "count" attribute set to the number of reprompts you wish to allow before disconnect from the IVR system.

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>
         <noinput count="3">
            <prompt>I'm sorry, I'm going to have to hang up now.</prompt>
            <disconnect/>
         </noinput>
      </field>
   </form>

</vxml>