| 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" as shown in the following example:Note: The 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 |
puneetb
|
|
| If I specify immediate="false", when is the dialog terminated if not immediately?
Thanks. Puneet |
|
voxeoJeffK
|
|
| Hello Puneet,
A dialogterminate with immediate="false" will cause a connection.disconnect.hangup to be thrown in the VXML dialog. This allows the VXML to perform any cleanup actions should it catch that event. Using immediate-"true" causes the VXML dialog to be terminated without waiting. Regards, Jeff Kustermann Voxeo Support EDIT: Upon researching this with our engineers this is not quite correct. immediate="true" only concerns the actions taken at the CCXML context. The VXML session will receive a connection.disconnect.hangup either way. The difference is whether CCXML will wait for any response from the VXML session. |
| login |