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

The <unjoin> element is used to disconnect two audio endpoints which were previously connected with the <join> element.


usage
<unjoin id1="(ECMAScript Expression)" id2="(ECMAScript Expression)">


attributes
id1Data Type: (ECMAScript Expression)Default: none - attribute is required
This attribute indicates the first of the call leg identifiers or conference objects that hold the ID for the audio endpoint to separate.
id2Data Type: (ECMAScript Expression)Default: none - attribute is required
The id2 attribute indicates the second of two audio endpoints to separate. if both endpoints are call legs, then the platform will inherently unbridge the two endpoints. But, if one of the endpoints is a conference, then the platform will remove the call leg from the conference.



parents
none


children
none


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

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

  <eventhandler statevariable="state0">
    <transition state="'init'" event="connection.CONNECTION_ALERTING" name="evt">
      <var name="line_0" expr="evt.callid"/>
      <createconference id="smallConf"/>
    </transition>
   
    <transition state="'init'" event="ccxml.conference.created">
      <assign name="state0" expr="'docalls'"/>
      <accept callid="line_0"/> 
      <createcall dest="'4075551111'" name="line_1"/>
      <createcall dest="'4075552222'" name="line_2"/>
      <createcall dest="'4075553333'" name="line_3"/>
    </transition>
 
    <transition state="'docalls'" event="connection.CONNECTION_CONNECTED" name="evt">
      <join id1="evt.callid" id2="smallConf" duplex="'full'"/>
    </transition>

    <transition state="'docalls'" event="ccxml.conference.joined" name="evt">
      <log expr="'*** CALL LEG [' + evt.callid + '] HAS JOINED THE CONFERENCE ***'"/>
<!-- ********* UNJOIN 'CONNECTED' CALL LEG TO CONFERENCE ********* -->
      <unjoin id1="evt.callid" id2="smallConf"/>
    </transition>
   
    <transition state="'docalls'" event="ccxml.conference.unjoined" name="evt">
      <log expr="'*** CALL LEG [' + evt.callid + '] HAS UNJOINED FROM THE CONFERENCE ***'"/>
      <exit/>
    </transition>   

<!-- ******************* GENERAL EXCEPTIONS ******************** -->
    <transition event="call.CALL_INVALID" name="evt">
      <if cond="evt.callid == line_0">       
        <destroyconference id="smallConf"/>
        <exit/>
      </if>
    </transition>

    <transition state="'docalls'" event="error.*" name="evt">
      <log expr="'*** ERROR HAS OCCURED [' + evt.error + '] ***'"/>
      <destroyconference id="smallConf"/>
      <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