CallXML 2.0 Development Guide Home  |  Frameset Home

This documentation is for CallXML 2, which has been superceded by CallXML 3. The CallXML 2 language is not being updated any longer. CallXML 3, however, has many new features and is actively being enhanced. If you're writing a new CallXML application, you should use CallXML 3. Click here for the CallXML 3.0 documentation.

<ontermdigit>  element


Used for catching and handling term digit events as they occur in the call flow.


usage

<ontermdigit next="(navigation identifier)" value="(123456789*#|ABCD)">


attributes

next Data Type: (navigation identifier) Default: none - attribute is optional
The 'next' attribute sets the URL the CallXML platform will go to when the container ends.
value Data Type: (123456789*#|ABCD) Default: none - attribute is required
This attribute defines the value to compare to the digit the user pressed to trigger an <ontermdigit> event. The value given in an <ontermdigit> element will be compared against the digit pressed, and if identical, any CallXML contained in the <ontermdigit> element will be executed. Allowable values are any one of "012356789*#", the ordinary DTMF (Touch-Tone) keypad possibilities, plus the special keypad tones found on some telephones "ABCD". Do note that not specifying the 'value' attribute will allow you to catch and handle *any* keypress from the caller.



possible events

none


code samples

<Ontermdigit>
<?xml version="1.0" encoding="UTF-8"?>

<callxml version="2.0">
  <block repeat="3">
    <text termdigits="123">
      Choose a number between one and three.
    </text>

    <ontermdigit value="1">
      <text>
        Hey, you pressed one.
      </text>
    </ontermdigit>

    <ontermdigit value="2">
      <text>
        Whoopie, you pressed two.
      </text>
    </ontermdigit>

    <ontermdigit value="3">
      <text>
        You must have pressed three. Its like magic.
      </text>
    </ontermdigit>
  </block>
</callxml>




additional links

none


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2011 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site