| CallXML 2.0 Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block>
<playaudio value="helloworld.wav"
termdigits="*#"/>
<ontermdigit value="*">
<goto label="#one"/>
</ontermdigit>
<ontermdigit value="#">
<goto label="#two"/>
</ontermdigit>
</block>
<block label="one">
<text>you pressed the star key.</text>
</block>
<block label="two">
<text>you pressed the pound key.</text>
</block>
</callxml>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block>
<playaudio value="helloworld.wav"
termdigits="*#"/>
<ontermdigit value="*">
<goto value="helloworld-star.xml"
submit="*"
method="get"/>
</ontermdigit>
<ontermdigit value="#">
<goto value="helloworld-pound.xml"
submit="*"
method="get"/>
</ontermdigit>
</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>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block label="star">
<text>you pressed the star key.</text>
</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>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block label="pound">
<text>you pressed the pound key.</text>
</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 |
hkondeth
|
|
| A one line explanation could be given on why Submit="*" is used. Does this mean the value '*' is passed or all session variables are passed.
Things confused me becasue in the previous page you had given the variable name at that place. |
|
Michael.Book
|
|
| Hey hkondeth,
Good question... For the edification all of you out there wondering what in the world that crazy "*" is all about, it is indeed a wild-card value indicating that all variable name/value pairs should be passed to the destination application document. If you do not want all vars to be included in the request, you can build a comma delimited list of those you want passed. For more information about <goto> and the 'submit' attribute, see: - http://docs.voxeo.com/callxml/2.0/frame.jsp?page=t_5cxml.htm&bm=1 Have Fun, ~ Michael |
| login |
|