Page 1 of 1

How is the # key treated differently from the other DTMF key

Posted: Fri Jun 13, 2003 2:12 pm
by support
The # key is the default key for terminating DTMF input. The # key itself can be captured if it is specified within a grammar:

Code: Select all

<form id="pound_test">
  <field name="foo">
    <grammar>1|2|"#"</grammar>
    <prompt>Please press one, two or the pound key</prompt>
    <filled>
      <if cond="foo == '#'">
        You pressed the pound key.
        <else />
          You did not press the pound key.
      </if>
    </filled>
  </field>
</form>
If the # key is not specified in grammar, it is ignored.