| CallXML 3.0 Development Guide | Home | Frameset Home |
|
<on> element.
"If it is raining, then wear a raincoat"
"If it is a Steve Guttenberg movie then change the channel"
"If the keypress is '6' then play 'If6was9.wav'"
"If the keypress was '9' then play '99RedBaloons.wav'"
<prompt choices="6,9">
Press six for Jimi Hendrix, or press nine for euro-hit wonder Nina.
</prompt>
<on event=<"choice:6">
<playaudio value="If6was9.wav"/>
</on>
<on event="choice:9">
<playaudio value="99Redballoons.wav"/>
</on>
<prompt choices="six,nine">
Press six for Jimi Hendrix, or press nine for euro-hit wonder Nina.
</prompt>
<on event="choice:six">
<playaudio value="If6was9.wav"/>
</on>
<on event="choice:nine">
<playaudio value="99Redballoons.wav"/>
</on>
<on> element we specify the event type, followed by a colon, then include the user input item itself<on> element, we specify application action that should occur when we have trapped a input event.| ANNOTATIONS: EXISTING POSTS |
visionik
|
|
| Note:
While the prompt example as shown will work, it's important to note that prompt is also a container type element. As a result, you can actually put the "on" elements inside your prompt, to group things more logically in your code. Here's an example: <prompt choice="6,9"> Press six for Jimi Hendrix, or press nine for euro-hit wonder Nina. <on event="choice:6"> <playaudio value="If6was9.wav"/> </on> <on event="choice:9"> <playaudio value="99Redballoons.wav"/> </on> </prompt> |
|
rqualis
|
|
| I tried this sample, but it only worked when I used "choices" instead of "choice" as instructed above. | |
saqibsarwar
|
|
| change
<prompt choice="6,9"> to <prompt choices="6,9"> and kindly upload tested code, as it wasted my time in getting it right. thanks |
|
voxeoAlexBring
|
|
| Hello,
Thanks for catching that typo for us. The changes will be reflected in our latest build of the Docs that should go live in the next week or two. Regards, Alex Voxeo Support |
|
morganhankins
|
|
| The typos mentioned in the comments are still present. Are there plans to update these docs? | |
voxeo_chris
|
|
| Hello,
We do apologize for the delay but as the documentation is a continuous process, it appears that this update was neglected. I will update our side to have this change reflected. You should see this error be corrected in the next few days. Regards, Chris Bruckart Customer Engineer Voxeo Support |
|
ashoksalve
|
|
| is there any tutorial, regarding how to use this software in asp.net or c#.
How do i use in dot net for further processing. Regards. |
|
VoxeoDante
|
|
| Hello,
There are a number of ways that you can incorporate your XML into a ASP application. If you are simply trying to have an ASP app that generates XML, there are some examples here; http://docs.voxeo.com/callxml/3.0/t_13cxml30.htm This is a very basic example of how to generate the XML with ASP. I hope this helps. Regards, Dante Vitulano |
|
lavanyasubbu
|
|
| Hello,
Pardon me for the newbie question. Whats wrong with this code. Why is it not "saying" the number i pressed. <callxml version="3.0"> <do label="f211" choices="6,7"> <say> Welcome to the My Application</say> <say> Please type six or seven</say> <wait value="5s"/> <on event="choice:6"> <say> You pressed six</say> </on> <on event="choice:7"> <say> You pressed seven</say> </on> </do> </callxml> |
|
visionik
|
|
| Hi,
Would it be possible to run a test call of that application and then open up a new ticket with the logs for that call? Regards, Jason Voxeo Support |
| login |
|