CCXML Voxeo 1.0 Development GuideHome  |  Frameset Home

This documentation is for CCXML 1.0-Voxeo, which has been superceded by CCXML 1.0-W3C. The CCXML-Voxeo platform is not being updated any longer. The CCXML 1.0-W3C version, however, has many new features and is actively being enhanced. If you're writing a new CCXML application, you should use CCXML 1.0-W3C. Click here for the CCXML 1.0-W3C documentation.
<exit>  element

The <exit> element is used to stop execution of a CCXML program and it's thread of control. Any and all pending events are discarded, and application termination begins immediately.


usage
<exit expr="(ECMAScript Expression)" namelist="STRING">


attributes
exprData Type: (ECMAScript Expression)Default: none - attribute is optional
Not Enabled
The expr attribute should have an ECMAScript expression that indicating a message to be sent and caught. If unspecified, then the value returned by the expr will resolve to 'zero'.  Note that this atrribute is currently non-functional, as the Voxeo CCXML browser does not return a 'ccxml.exit' event when the <exit> element is encountered.
namelistData Type: STRINGDefault: none - attribute is optional
Not Enabled
The namelist attribute denotes the space-separated list of variable names to be sent as properties of the <exit> event. Note that this atrribute is currently non-functional, as the Voxeo CCXML browser does not return a 'ccxml.exit' event when the <exit> element is encountered.



parents
none


children
none


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

<var name="state0" expr="'ENTERING'"/>

  <eventhandler statevariable="state0">

    <transition event="connection.CONNECTION_ALERTING" name="evt">
      <log expr="'*** INCOMING CALLID IS: ' + evt.callid + ' ***'"/>
      <accept/>
    </transition>

    <transition event="connection.CONNECTION_CONNECTED">
      <log expr="'*** INCOMING CALL WAS ANSWERED ***.'"/>
<!-- ********* USING <EXIT> ENDS APPLICATION EXICUTION ******** -->
      <exit/>
    </transition>


<!-- ****************** GENERAL EXCEPTIONS ******************** -->
    <transition event="call.CALL_INVALID">
      <exit/>
    </transition>

    <transition event="error.*" name="evt">
      <log expr="'*** ERROR HAS OCCURED [' + evt.error + '] ***'"/>
      <exit/>
    </transition>
  </eventhandler>

</ccxml>



additional links
W3C 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