Page 1 of 1

nomatch not working

Posted: Tue Dec 12, 2006 1:54 pm
by brent.russell
For some reason the following code does not catch the nomatch when entering 3. It does do a reprompt on noinput but if I press 3 it hangs up. It should reprompt instead. I can't figure out why. Any help please.

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/> 

<!-- Confirm that thier entered number is correct -->
<form id="confirmMobileNumber">
	<field name="confirmNumberChoice" type="digits?length=1">
	  <grammar type="application/x-jsgf">1|2</grammar>
	  <property name="interdigittimeout" value="4s"/>
	  <prompt timeout="6s">You entered <say-as type="acronym"><value expr="document.tempPhoneNumber"/></say-as>. 
			     If this phone number is correct, press one, if not press two.</prompt>
	<filled>
	
	  <if cond="confirmNumberChoice==1">
		<assign name="document.phone_number" expr="document.tempPhoneNumber"/>
		<assign name="application.GVphone" expr="document.tempPhoneNumber"/>
		<goto next="main_menu.vxml" maxage="0"/>
 	  <elseif cond="confirmNumberChoice==2"/>
		<goto next="#getNumber"/>
	  </if>
	</filled>
	<noinput>
		<reprompt/>
	</noinput>
	<nomatch>
		Sorry, that was not one of the choices.
		<reprompt/>
	</nomatch>
	</field>
</form>

</vxml>

IVR post for built-in digits type

Posted: Tue Dec 12, 2006 2:31 pm
by support
This problem is similar to the one explained in this IVR post: http://support.plumvoice.com/viewtopic.php?t=566

You should not specify the built-in digits type in the "type" attribute of your "field" block.