| CallXML 2.0 Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<playaudio value="helloworld.wav"
termdigits="*#"/>
<ontermdigit value="*">
<text>you pressed the star key.</text>
</ontermdigit>
<ontermdigit value="#">
<text>you pressed the pound key.</text>
</ontermdigit>
</callxml>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block>
<playaudio value="helloworld.wav"
termdigits="*#"/>
<ontermdigit value="*">
<text>you pressed the star key.</text>
</ontermdigit>
<ontermdigit value="#">
<text>you pressed the pound key.</text>
</ontermdigit>
</block>
</callxml>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block>
<playaudio value="helloworld.wav"
termdigits="*#"/>
<ontermdigit value="*">
<goto value="#one"/>
</ontermdigit>
<ontermdigit value="#">
<goto value="#two"/>
</ontermdigit>
</block>
<block label="one">
<text>you pressed the star key.</text>
<exit/>
</block>
<block label="two">
<text>you pressed the pound key.</text>
<exit/>
</block>
<onerror>
<sendemail from="MyApp@here.com"
to="YourEmail@there.net" type="debug">
We caught an error in our application. Details follow...
</sendemail>
</onerror>
</callxml>
| ANNOTATIONS: EXISTING POSTS |
seanohagan
|
|
| The code in Step 2 does NOT do the same thing as the code in Step 1. The second version clearly speaks both text messages when the user presses the star key. | |
MattHenry
|
|
|
Hello Sean, Correct you are; our sample code is missing an <exit/> within it's blocks, and should really read like this: <block label="one"> <text>you pressed the star key.</text> <exit/> </block> <block label="two"> <text>you pressed the pound key.</text> <exit/> </block> I have this fixed in our internal build of the docset, and will be made live in the near future. ~Matt |
| login |
|