| VoiceXML 2.1 Development Guide | Home | Frameset Home |
| expr | Data Type: CDATA | Default: Optional |
| The expr attribute lets the developer send an ECMAScript expression back to the interpreter when this condition executes. Like the namelist attribute, the VXML browser ignores values in this attribute, but any originating CCXML application can receive the values contained in the expr attribute. | ||
| namelist | Data Type: NMTOKEN | Default: Optional |
| The namelist attribute, as mentioned previously, allows developers to send the browser variable information upon an exit condition. Currently, the VXML browser does not do anything with the namelist value, but it does allow you to pass the values to any originating CCXML application. | ||
| <?xml version="1.0" encoding="UTF-8"?> <vxml version = "2.1"> <meta name="author" content="Matthew Henry"/> <meta name="copyright" content="2005 voxeo corporation"/> <meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/> <var name="SomeVar" expr="'SomeValue'"/> <form id="F1"> <block> <prompt> preparing to exit, and send a value back to our originating c c x m l dialog. </prompt> <exit namelist="SomeVar"/> </block> </form> </vxml> |
| ANNOTATIONS: EXISTING POSTS |
DaveMorris
|
|
| You should also mention here that this tag is quite different from the DISCONNECT tag in that it does NOT throw a connection.disconnect event. Thus, it can be used within an error catching routine where you would not want another error thrown.
Dave Morris |
|
mikethompson
|
|
| Hello Dave,
You bring up a good point. I'll alert the keepers of the documentation and let them know that this might be something they would want to add in future builds. Thanks for the input! Mike Thompson Voxeo Extreme Support |
|
moshe
|
|
| The "usage" line should show a closing "/>" instead of just a ">". | |
mikethompson
|
|
| Hello Moshe,
You're right! Thanks for catching that, I'll let the documentation keepers know of your find. Thanks, Mike Thompson Voxeo Extreme Support |
|
vinayagan
|
|
| Hi,
I would like to write the vxml certification.I don't know whether is it possible in india. If anybody have ideas about the certification centre please inform. Thanks nayagan |
|
MattHenry
|
|
|
Nayagan, I might suggest that you check the vxml forum, and the prometric site for information regarding VXML developer certification in your region: http://vxmlforum.com/certification/developer.html http://www.prometric.com/default.htm Regards, ~Matthew Henry |
|
mtatum111
|
|
| Is it also advisable to put <disconnect> after <exit> or is that considered "overkill" | |
VoxeoDustin
|
|
| Hey,
Putting a <disconnect/> after and <exit/> will actually do nothing, as exiting the session implicitly disconnects the call leg and the <disconnect/> will likely never actually be processed, so this is not necessary. Worst case scenario is that the <disconnect/> is processed before the session has completely torn down and an ERROR.SEMANTIC will be thrown. Cheers, Dustin |
|
mtatum111
|
|
| Dustin, thanks for the clarification. Y'all are the best in answering questions so quickly :)
|
|
mtatum111
|
|
| I had another question that I wanted to pose
To terminate a connection between the user and the voice browser but also provide event handling for any cleanup processing, which VXML element should be used? 1) <disconnect> 2) <exit> I was told that the correct answer is 1) <disconnect> However, I don't understand why 2) <exit> is not the correct answer. I would have thought <exit> because this element in VXML 2.0 has attributes of namelist and expr (with exactly one of those being used). Of course, in vxml 2.1, <disconnect> now has the namelist attribute as well. Since this question though was using 2.0, I though <exit>. Can you provide any insight? Again, thanks for all of your help. Y'all are the best! |
|
VoxeoDustin
|
|
| Hey Melissa,
<disconnect/> is the correct answer here. <exit/> will terminate the VoiceXML session and send the dialog.exit event back to CCXML, not allowing for any cleanup within VoiceXML. The <disconnect/> however, will leave the VoiceXML session up, throw the [b]connection.disconnect[/b] event so we can perform any post call cleanup. Cheers, Dustin |
| login |