VoiceXML 2.1 Development GuideHome  |  Frameset Home


<disconnect>  element

The disconnect element is used to programmatically disconnect the caller from the voice application, which also throws an connection.disconnect event to the interpreter to allow the the developer to submit any existing variables to his webserver.


usage
<disconnect />


attributes
none


shadow variables
none


parents
<block> <catch> <error> <filled> <help> <if> <noinput> <nomatch>


children
none


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

<vxml version = "2.1">

<meta name="author" content="Matthew Henry"/>
<meta name="copyright" content="2005 voxeo corporation"/>
<meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/>


<var name="Var1" expr="'SomeBigImportantValue'"/>

<catch event="connection.disconnect">
<!--
    here we can catch the disconnect event,
    and submit any existing variables to our server
-->
  <log expr="'*********************************************************'"/>
  <log expr="' CAUGHT THE DISCONNECT EVENT'"/>
  <log expr="'*********************************************************'"/>
<!--
  <submit next="MyWebserver.com/MyCGIFile.cgi" namelist=Var1"/>
-->
</catch>

<form id="F1">

  <block>
    <prompt>
      getting ready to disconnect the call, which
      will throw a telephone dot disconnect event
    </prompt>
  </block>

  <block>
  <disconnect/>
  </block>

</form>
</vxml>



additional links
W3C 2.0 Specification


  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