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

The <destroyconferenece> element is used to tear down a conference object that was instatiated using the <createconference> element. Upon completion of this operation, an asynchronous event will be sent to the CCXML document notifying the application that the conference has indeed been destroyed.


usage
<destroyconference id="(ECMAScript Expression)">


attributes
idData Type: (ECMAScript Expression)Default: none - attribute is required
This attribute denotes the identifier indicating the conference to be destroyed.



parents
none


children
none


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

  <eventhandler statevariable="state0">
    <transition state="'init'" event="connection.CONNECTION_ALERTING" name="evt">
      <var name="line_0" expr="evt.callid"/>
      <createconference name="smallConf"/>
    </transition>
   
    <transition state="'init'" event="ccxml.conference.created">
      <assign name="state0" expr="'docalls'"/>
            <accept callid="line_0"/> 
          <createcall dest="'4078351111'" name="line_1"/>
      <createcall dest="'4078351112'" name="line_2"/>
      <createcall dest="'4078351113'" name="line_3"/>
    </transition>
 
    <transition event="connection.CONNECTION_CONNECTED" name="evt">
          <join sessionid1="evt.callid" sessionid2="smallConf"/>
    </transition>

    <transition event="ccxml.conference.joined" name="evt">
      <log expr="'---- call leg ' + evt.callid + ' has joined the conference ----'"/>
    </transition>
   
    <transition event="ccxml.conference.unjoined" name="evt">
      <log expr="'---- call leg ' + evt.callid + ' has unjoined the conference ----'"/>
    </transition>   

    <transition event="call.CALL_INVALID" name="evt">
      <if cond="evt.callid == line_0">       
        <destroyconference conferenceid="smallConf"/>
        <assign name="state0" expr="'conferencedestroyed'"/>
      </if>
    </transition>   
   
    <transition event="ccxml.conference.destroyed">
      <exit/>
    </transition>

    <transition state="'docalls'" event="error.*" name="evt">
          <destroyconference conferenceid="smallConf"/>
      <exit/>
    </transition>

    <transition event="error.*" name="evt">
      <log expr="'---- an error has occurred (' + evt.error + ') ----'"/>
      <exit/>
    </transition>

  </eventhandler>   
</ccxml>




additional links
W3C Specification


  ANNOTATIONS: EXISTING POSTS
Lampei
7/27/2006 11:16 AM (EDT)
Is it conferenceid or id when destroying the conference?  The documentation has "id", but the example has "conferenceid".
MattHenry
7/28/2006 11:56 AM (EDT)


Hello Gareth,

I'm pretty sure that both of them work, in the context of the Voicecenter 5.5 implementation of CCXML. Remember that this implementation was deployed when CCXML was in working draft status, circa 2002, and that lots of things changed with the specification almost daily.

You'll note that our 'multiparty conferencing' tutorial uses 'id' instead of 'conferenceid',, which illustrates that you can use either of the two. This ambiguity is less prevalent in our Voicecenter 6 deployment of CCXML 1.0, which is a bit more rigid to the specification, (docs coming soon soon soon!).

~Matthew Henry

login



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