Home > Articles > Web Services > XML

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

3.8 disconnect

Element type

disconnect

Attributes

None.

Parents

block | catch | error | filled | help | if | noinput | nomatch

Children

None.

Description

Causes the interpreter to disconnect the call.

DTD

<!ELEMENT disconnect EMPTY >

Language model


03mod08.gif


Attributes

None.

Children

None.

Examples

Example 3-10 Disconnecting caller after three unsuccessful PIN attempts

<?xml version="1.0" encoding="iso-8859-1"?>
<vxml version="1.0">
  <form id="testPIN">
    <block>Welcome</block>
    <field name="custPIN" type="digits?minlength=5;maxlength=5">
      <prompt>Please key in your PIN.</prompt>
      <nomatch count="1">I'm sorry, that is not a valid PIN.
        <reprompt/>
      </nomatch>
      <nomatch count="2">Your PIN is incorrect. Check the back 
        of your card, in the upper right corner for your PIN.
        <reprompt/>
      </nomatch>
      <nomatch count="3">I'm sorry. That is still not a valid PIN. 
        You will now be disconnected.
        <disconnect/>
      </nomatch>

      <filled>
        Processing your PIN: <value expr="custPIN"/>
      </filled>
    </field>
  </form>
</vxml>
  • + Share This
  • 🔖 Save To Your Account