Page 1 of 1

keep getting nomatch events

Posted: Tue Oct 04, 2011 9:32 am
by jallard
Hello. When testing my application, I have come to a point that keeps getting nomatch events, and I'm not sure why. I'm not sure what I can do to make the input better. It asks for the caller to enter the date that's on the check. I wanted them to enter the date as 8 digits, MMDDYYYY. I then wanted the date said back to them in date format. However, there were no <say-as> values that allowed them to input the date in this format. Also, if I use the built-grammar name="date", then the customer would have to enter the date as YYYYMMDD. So this is the best I could come up with. But when I input the date, I keep getting nomatch events. Here is the code:

<field name="chkdate" type="digits?length=8">
<property name="timeout" value="10s"/>
<prompt bargein="true">
<voice name="mike">
Please enter the date of the check. Please enter the year using four digits. For example, January 31st 2011 would be entered as zero one three one two zero one one.
</voice>
</prompt>
<noinput count="1">
<prompt>
<voice name="mike">
I'm sorry, but I didn't understand you.
</voice>
</prompt>
<reprompt/>
</noinput>
<noinput count="2">
<prompt>
<voice name="mike">
I'm sorry, but I still didn't understand you.
</voice>
</prompt>
<reprompt/>
</noinput>
<noinput count="3">
<prompt>
<voice name="mike">
I'm sorry, but I still didn't understand you. Goodbye.
</voice>
</prompt>
<disconnect/>
</noinput>
<filled>
<prompt bargein="true">
<voice name="mike">
<prosody rate="medium">
You entered <say-as type="acronym"> <value expr="chkdate"/> </say-as>
</prosody>
</voice>
</prompt>
<goto nextitem="chkdate2"/>
</filled>
</field>

Any help is appreciated.

Re: keep getting nomatch events

Posted: Tue Oct 04, 2011 10:40 am
by support
Hi jallard,

Your application code should work correctly. We believe that you may be accidentally barging into the prompt with surrounding noise since your application is currently set up to accept voice and DTMF input. We found that by limiting the input to just DTMF we no longer received any nomatch events so long as we entered in 8 digits exactly.

main.php

Code: Select all

<?php
header("Content-type: text/xml");
echo "<?xml version=\"1.0\"?>";
?>

<vxml version="2.0">
  <form>
    <field name="chkdate" type="digits?length=8">
      <property name="inputmodes" value="dtmf"/>
      <property name="timeout" value="10s"/>
      <prompt bargein="true">
	<voice name="mike">
	  Please enter the date of the check. Please enter the year using four digits. For example, January 31st 2011 would be entered as zero one three one two zero one one.
	</voice>
      </prompt>
      <noinput count="1">
	<prompt>
	  <voice name="mike">
	    I'm sorry, but I didn't understand you.
	  </voice>
	</prompt>
	<reprompt/>
      </noinput>
      <noinput count="2">
	<prompt>
	  <voice name="mike">
	    I'm sorry, but I still didn't understand you.
	  </voice>
	</prompt>
	<reprompt/>
      </noinput>
      <noinput count="3">
	<prompt>
	  <voice name="mike">
	    I'm sorry, but I still didn't understand you. Goodbye.
	  </voice>
	</prompt>
	<disconnect/>
      </noinput>
      <filled>
	<prompt bargein="true">
	  <voice name="mike">
	    <prosody rate="medium">
	      You entered <say-as type="acronym"> <value expr="chkdate"/> </say-as>
	    </prosody>
	  </voice>
	</prompt>
	<goto nextitem="chkdate2"/>
      </filled>
    </field>
  </form>
</vxml>
Regards,
Plum Support