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.
<onhangup>  element

This 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.


usage
<onhangup next="(navigation identifier)">


attributes
nextData Type: (navigation identifier)Default: none - attribute is optional
The 'next' attribute sets the URL the CallXML platform will go to when the container ends.



possible events
none


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

<callxml version="2.0">
  <block>
    <text>
      Getting ready to disconnect, bossman.
    </text>

    <hangup/>

    <onhangup>
      <log value="===  CAUGHT THE HANGUP EVENT ==="/>
      <goto value="MyCleanupCode.cgi" submit="*"/>
    </onhangup>
  </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