<?xml version="1.0" encoding="UTF-8"?>
<!-- @ Copyright 1998-2003 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. @ -->

<vxml xmlns="http://www.w3.org/2001/vxml" xmlns:conf="http://www.w3.org/2002/vxml-conformance" version="2.0">

<form id="form0">

  <field name="a">
  <property name="inputmodes" value="dtmf"/>
    <property name="termchar" value="2"/>

    <conf:dtmf value="12"/>
  
  <grammar mode="dtmf" version="1.0" root="my_root" type="application/srgs+xml">
    <rule id="my_root" scope="public">
      <one-of>
        <item>1</item>
        <item>1 1</item>
      </one-of>
    </rule>
  </grammar>

  <filled>
    <if cond="a == '1'">
      <conf:pass/>
    <else/>
      <conf:fail reason="termchar property not respected"/>
    </if>
  </filled>
   </field>

  <block>
    <conf:fail reason="block unexpectedly visited"/>
  </block>

</form>

<catch>
    <conf:fail expr="'caught unexpected event: ' + _event"/>
</catch>

</vxml>
