| CCXML 1.0 Development Guide | Home | Frameset Home |
| conferenceid | Data Type: (ECMAScript Expression) | Default: Required |
The conferenceid attribute evaluates to a pre-defined ECMAScript variable, which is required in order to receive the URI-formatted conference identifier. This identifier must be unique, (as conferences are globally scoped), and is a required attrbute of the <createconference> element. | ||
| hints | Data Type: (ECMAScript Expression) | Default: Optional |
The hints attribute can be used to specify information used by the platform to configure the event processor. The value of this attribute should equate to an object that contains an array property of "headers"; for instance:Note that 'hints.headers' stores what headers to add to the sip request, and that only headers starting with an 'x-' prefix are sent. | ||
| reservedlisteners | Data Type: (ECMAScript Expression) | Default: Optional |
| Unsupported Attribute The reservedlisteners attribute allows the developer to specify an ECMAScript expression that returns the number of guaranteed listener slots that the conference mixer is to reserve. In the event that a conference already exists, then this attribute will be ignored. Should the conference mixer be unable to reserve the amount of listener slots requested, then the <createconference> will fail with a error.conference.create event being thrown. | ||
| reservedtalkers | Data Type: (ECMAScript Expression) | Default: Optional |
Unsupported Attribute The reservedtalkers attribute allows the developer to specify an ECMAScript expression that returns the number of guaranteed talker slots that the conference mixer is to reserve. In the event that a conference already exists, then this attribute will be ignored. Should the conference mixer be unable to reserve the amount of talker slots requested, then the <createconference> will fail with a error.conference.create event being thrown. | ||
| <?xml version="1.0" encoding="UTF-8"?>
<ccxml version="1.0" xmlns="http://www.w3.org/2002/09/ccxml"> <var name="caller1id"/> <var name="caller2id"/> <var name="confid"/> <var name="state0" expr="'not_inited'"/> <var name="incomingcall"/> <var name="callcount" expr="0"/> <eventprocessor statevariable="state0"> <transition event="ccxml.loaded" name="evt"> </transition> <transition event="connection.alerting" name="evt"> <script> var myObj = new Object(); myObj.value1 = 'result1'; myObj.value2 = 'result2'; </script> <assign name="state0" expr="'accepting'"/> <assign name="incomingcall" expr="evt.connectionid"/> <accept/> </transition > <transition event="connection.connected" name="evt" state="accepting"> <assign name="callcount" expr="callcount+1"/> <dialogstart src="'null://?text=Please wait for all parties to join&termdigits=1&voice=English-SAPI'" type="'application/x-texttospeech'"/> <log expr="'*** CREATING CONFERENCE ***'"/> <createconference conferenceid="confid" hints="myObj"/> </transition> <transition event="dialog.exit" state="accepting"> <assign name="state0" expr="'joining0'"/> <join id1="confid" id2="incomingcall"/> </transition> <transition event="conference.created" name="evt"> </transition> <transition event="conference.joined" name="evt" state="joining0"> <assign name="state0" expr="'calling1'"/> <log expr="'*** DIALING FIRST PARTY ***'"/> <createcall dest="'tel:5033481009'" callerid="'tel:1112223333'" connectionid="caller1id"/> </transition> <transition event="connection.connected" name="evt" state="calling1"> <assign name="callcount" expr="callcount+1"/> <assign name="state0" expr="'calling2'"/> <dialogstart src="'null://?text=Please wait for all parties to join&termdigits=1&voice=English-SAPI'" type="'application/x-texttospeech'"/> </transition> <transition event="dialog.exit" name="evt" state="calling2"> <join id1="confid" id2="caller1id"/> </transition> <transition event="conference.joined" name="evt" state="calling2"> <log expr="'*** DIALING SECOND PARTY ***'"/> <createcall dest="'tel:4074965560'" callerid="'3334445555'" connectionid="caller2id"/> </transition> <transition event="connection.connected" name="evt" state="calling2"> <assign name="callcount" expr="callcount+1"/> <assign name="state0" expr="'joining2'"/> <log expr="'*** JOINING SECOND PARTY: ' + confid"/> <join id1="confid" id2="caller2id"/> </transition> <transition event="conference.joined" name="evt" state="joining2"> <log expr="'*** ALL PARTIES JOINED IN CONFERENCE ***'"/> <send data="'deletemyconference'" delay="'600s'" target="session.id"/> </transition> <transition event="connection.disconnected"> <assign name="callcount" expr="callcount-1"/> <if cond="callcount == 1"> <!-- ONE PERSON STILL ON CONFERENCE; DISCONNECT HIM --> <destroyconference conferenceid="confid" hints="myObj"/> <exit/> </if> </transition> <transition event="deletemyconference"> <destroyconference conferenceid="confid"/> <exit/> </transition> <transition event="error.conference.join" name="evt" state="joining1"> <log expr="'*** ERROR CONNECTING SECOND PARTY ***'"/> <exit/> </transition> <transition event="error.conference.join" name="evt" state="joining2"> <log expr="'*** ERROR CONNECTING THIRD PARTY ***'"/> <exit/> </transition> <transition event="conference.destroyed" name="evt"> <log expr="'*** CONFERENCE DESTROYED ***'"/> <exit/> </transition> <transition event="error.*" name="evt"> <log expr="'*** ERROR DETECTED: '+ evt.name"/> <exit/> </transition> </eventprocessor> </ccxml> |
| ANNOTATIONS: EXISTING POSTS |
| login |