CallXML 2.0 Development GuideHome  |  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.
<hangup>  element

This element instructs the CallXML browser to "hang-up" or disconnect the call associated with the current session.


usage
<hangup />


attributes
none


possible events
onhangupThis event occurs when a session determines that one side of the call has hung up. A typical use for this handler is to execute any necessary clean-up code. See the onhangup element description for further details.
onerror type="linenotactive"Trying to issue a telephony event such as <getdigits> or <playaudio> on a non-active line
onerror type="telephony"Unable to issue a telephony event such as <call> or <playaudio> or <ftp>



code samples
&Hangup>
<?xml version="1.0" encoding="UTF-8"?>

<callxml version="2.0">
  <block label="B1">
    <text>
      Hey, we have a rude phone application on our hands.
      Any minute now, it will hang up on you.
    </text>

    <wait value="3s"/>

    <hangup/>
  </block>
</callxml>




additional links
none


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

login



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