| CCXML 1.0-W3C Development Guide | Home | Frameset Home |
<dialogterminate>, the VXML dialog can return data to the CCXML application using the VoiceXML <exit namelist> element, (inherantly throwing a 'dialog.exit event').| dialogid | Data Type: (ECMAScript Expression) | Default: none - attribute is required |
The dialogid attribute specifies a character string identifying the dialog. This dialogid will have been generated by <dialogstart> and stored in the ECMAScript variable identified by the "dialogid" attribute. | ||
| 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. | ||
| immediate | Data Type: (true|false) | Default: False |
| Set to "true" or "false" to specify if the dialog is immediately terminated. | ||
| <?xml version="1.0" encoding="UTF-8"?> <ccxml version="1.0" xmlns="http://www.w3.org/2002/09/ccxml"> <meta name="author" content="Jeff Menkel"/> <meta name="copyright" content="2007 Voxeo Corporation"/> <meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/> <var name="state0" expr="'init'"/> <var name="myVar" expr="'foo'"/> <var name="holdMusicDlg" expr="''"/> <eventprocessor statevariable="state0"> <transition state="init" event="connection.alerting"> <accept/> </transition> <transition state="init" event="connection.connected"> <dialogstart type="'application/voicexml+xml'" src="'HoldMusic.vxml'" dialogid="holdMusicDlg"/> <send name="'stopHoldMusic'" target="session.id" delay="'10s'"/> </transition> <transition state="init" event="stopHoldMusic"> <dialogterminate dialogid="holdMusicDlg"/> </transition> <transition event="dialog.exit"> <log expr="'*** Dialog terminated! ***'"/> <exit/> </transition> <transition event="connection.disconnected"> <log expr="' *** Disconnection detected! ***'"/> <exit/> </transition> <transition event="error.*"> <log expr="'*** Doh! We got an error: [' + event$.reason + '] ***'"/> <exit/> </transition> </eventprocessor> </ccxml> |
| ANNOTATIONS: EXISTING POSTS |
| login |