<nomatch>
The <nomatch> element is short for <catch event="nomatch">.
Attributes
| count |
(defaults to 1) The
occurrence of the event. The count allows you to handle different
occurrences of the same event differently. Each <form>,
<menu>, and form item maintains a counter for each event that
occurs while it is being visited; these counters are reset each time
the <menu> or form item's <form> is re-entered. The
form-level counters are used in the selection of an event handler for
events thrown in a form-level <filled>. Counters are incremented
against the full event name and every prefix matching event name; for
example, occurrence of the event "event.foo.1" increments the counters
associated with handlers for "event.foo.1" plus "event.foo" and
"event". |
| cond |
(defaults to true) An
expression that must evaluate to true after conversion to Boolean in
order for the event to be caught. |
Child Tags
<assign>, <audio>,
<clear>, <data>,
<disconnect>, <enumerate>, <exit>,
<foreach>, <goto>,
<if>, <log>,
<prompt>, <reprompt>,
<return>, <submit>,
<throw>, <script>,
<value>, <var>
Parent Tags
<field>, <form>,
<initial>, <menu>,
<object>, <record>,
<subdialog>, <transfer>, <vxml>
Notes
none
Example
<?xml version="1.0"?> <vxml version="2.0"> <form> <field name="myfield"> <grammar type="application/x-jsgf" mode="dtmf"> ( 1 | 2 )+ </grammar> <grammar type="application/x-jsgf" mode="voice"> ( one | two )+ </grammar> <prompt> Say or enter any number of the digits one or two. </prompt> <filled> You entered <value expr="myfield"/>. </filled> <nomatch> You did not say or enter any ones or twos. <reprompt/> </nomatch> <noinput> You did not enter anything. <reprompt/> </noinput> </field> </form> </vxml>
|
An interaction with the above script could be:
Computer:
Say or enter any number of the
digits one or two.
Human: (enters
DTMF-5)
Computer: You did not say
or
enter any ones or twos.
Computer: Say or enter any
number of the digits one or two.
Human: (silently waits for
prompt to timeout)
Computer: You did not enter
anything.
Computer: Say or enter any
number of the digits one or two.
Human: One two one
two.
Computer: You entered one
two
one two.
|