| CCXML Voxeo 1.0 Development Guide | Home | Frameset Home |
| callid | Data Type: (ECMAScript Expression) | Default: none - attribute is required |
| This attribute is an expression which tells the dialog which call leg object it should be linked with. If unspecified, the default value of this attribute will equate to "_event.source", which means that the dialog instance will be associated with whatever call leg generated the last event. | ||
| dialogid | Data Type: (variable name) | Default: none - attribute is optional |
The dialogid attribute specifies the value of the session name used to identify the launched dialog. This value is used to reference dialog events, and is used as an identifier when the <dialogterminate> element is invoked. | ||
| namelist | Data Type: STRING | Default: none - attribute is optional |
| This attribute indicates the space-separated list of variable names to be appended to the dialog URL as parameters. The variables will then be available as a variable/value pair in the resultant URI querystring that is sent to the server. | ||
| src | Data Type: (ECMAScript Expression) | Default: none - attribute is required |
| The src attribute indicates the URL of the VoiceXML dialog to be started. Also note that with the Voxeo dialog extensions, this can also be used to indicate playable audio files or dtmf tones to be output. In addition, this can also hold the value of a TTS string, and/or valid dtmf termdigit entries that can be accepted from the caller. Also allowed is a URI address specifying where a recorded audio stream is to be sent. See the 'Appendix D: Dialog Extensions' section for further details of this usage. | ||
| type | Data Type: (ECMAScript Expression) | Default: application/voicexml+xml |
| Specifies the MIME type of the requested resource. This value is used to determine and initiate the appropriate dialog system. Standard Values:
(see 'Appendix D' for additional details)
NOTE: The type attribute should not be used in conjunction with the prepareddialogid attribute. | ||
| <?xml version="1.0" encoding="UTF-8" ?> <ccxml version="1.0"> <var name="state0" expr="'init'"/> <var name="myVar" expr="'foo'"/> <eventhandler statevariable="state0"> <transition state="'init'" event="connection.CONNECTION_ALERTING" name="evt"> <var name="callid_IN" expr="evt.callid"/> <accept/> </transition> <transition state="'init'" event="connection.CONNECTION_CONNECTED" name="evt"> <!-- ***************** START VXML DIALOG ****************** --> <dialogstart type="'application/xml+vxml'" src="'My_VXML_Dialog.vxml'" dialogid="vxmlDlg" callid="callid_IN" namelist="myVar"/> </transition> <transition event="dialog.exit" name="evt"> <log expr="'DIALOG EXIT REACHED'"/> <log expr="'*** \'myReturnVar\' EQUALS (' + evt.myReturnVar + ') ***'"/> <exit/> </transition> <!-- ****************** GENERAL EXCEPTIONS ******************** --> <transition event="call.CALL_INVALID"> <exit/> </transition> <transition event="error.*" name="evt"> <log expr="'*** AN UNEXPECTED ERROR HAS OCCURED [' + evt.error + '] ***'"/> <exit/> </transition> </eventhandler> </ccxml> |
| <?xml version="1.0"?> <vxml version="2.0"> <var name="myReturnVar" expr="'Hello'"/> <form id="Form"> <block> <prompt> Look at your C C X M L logger out put to see the value of my return var. </prompt> <exit namelist="myReturnVar"/> </block> </form> </vxml> |
| ANNOTATIONS: EXISTING POSTS |
MattTrinneer
|
|
| It seems inconsistent that dialogstart in ccxml would not offer a 'method' argument accepting 'POST' as a value? | |
voxeojeff
|
|
| Hello Matt,
We actually do have plans to support the 'method' attribute. Our Prophecy engineers are currently working on implementing this feature into a future build of Prophecy 8. There is currently no ETA, but we'll be sure to update you when we have one. Best regards, Jeff Menkel Voxeo Corporation |
|
matejicek
|
|
| Hello there,
I have a problem to obtain some value defined in CCXML document in voicexml document thru parameter namelist in <dialogstart> element. In your example above is shown exactly opposite situation with <exit namelist=...>, but I'd like to know how gain in voicexml document value 'foo' defined in ccxml document. Thank you for answers. Matejicek |
|
mikethompson
|
|
| Matejicek,
This is possible using session.connection.ccxml name space which allows you to not utilize server side scripting to grab these variables. It is well defined here: 'http://www.w3.org/TR/2005/WD-ccxml-20050629/#VoiceXMLIntegration'. ------------------------------------------------------------------------------------------------ An example application demonstrating how to accesses all values in the 'session.connection.ccxml' object is: __________________________________ <?xml version="1.0" encoding="UTF-8" ?> <vxml version="2.1" xmlns:voxeo="http://community.voxeo.com/xmlns/vxml"> <form id="CCXMLVars"> <block> <log expr="'session.connection.ccxml == ' + session.connection.ccxml"/> <log expr="'session.connection.ccxml.sessionid == ' + session.connection.ccxml.sessionid"/> <log expr="'session.connection.ccxml.dialogid == ' + session.connection.ccxml.dialogid"/> <log expr="'session.connection.ccxml._ioprocessors == ' + session.connection.ccxml._ioprocessors"/> <log expr="'session.connection.ccxml._ioprocessors.basichttp == ' + session.connection.ccxml._ioprocessors.basichttp"/> <log expr="'session.connection.ccxml._url == ' + session.connection.ccxml._url"/> <log expr="'session.connection.ccxml.namelist == ' + session.connection.ccxml.namelist"/> <log expr="'session.connection.ccxml.namelist.length == ' + session.connection.ccxml.namelist.length"/> <foreach item="value" array="session.connection.ccxml.namelist"> <log expr="'foreach keys == ' + value"/> </foreach> <log expr="'session.connection.ccxml.values == ' + session.connection.ccxml.values"/> <log expr="'session.connection.ccxml.values.a == ' + session.connection.ccxml.values.a"/> <log expr="'session.connection.ccxml.values.b == ' + session.connection.ccxml.values.b"/> <log expr="'session.connection.ccxml.values.c == ' + session.connection.ccxml.values.c"/> <log expr="'session.connection.ccxml.values.d == ' + session.connection.ccxml.values.d"/> </block> </form> </vxml> ---------------------------------------------------------------------------------------------- Please let me know if you have any additional questions, as always, we are standing by to assist. Best, Mike Thompson Voxeo Corporation |
| login |