We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Limit the reprompt

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
brent.russell
Posts: 50
Joined: Wed Oct 04, 2006 1:34 pm
Location: SOCAL
Contact:

Limit the reprompt

Post 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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Disconnect from IVR system

Post 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>

Post Reply