| CallXML 2.0 Development Guide | Home | Frameset Home |
|
<playaudio><inputaudio><inputdigits> <goto> <run>
<playaudio value="helloworld.wav" format="audio/wav" cache="NO"/>
<playaudio value="greeting.wav" format="audio/wav" cache="NO"/>
<playaudio value="mainmenu.wav" format="audio/wav"/>
<goto value="mynextpage.xml" submit="*" method="get" cache="NO"/>
<?PHP
header ("Cache-Control: no-cache");
... body of code here ...
?>
<%
response.Expires = -1
... body of code here ...
%>
<CFHEADER NAME="Cache-Control" VALUE="no-cache">
... body of code here ...
<%
response.setHeader("Cache-Control","no-cache");
... body of code here ...
%>
print "Cache-Control: no-cache";
... body of code here ...
<?PHP
header ("Pragma: no-cache");
... body of code here ...
?>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block>
<playAudio value="helloworld.wav"
termdigits="*#"
cache="no"/>
<ontermdigit value="*">
<goto value="helloworld-handler.php?key=star"
submit="*"
method="get"
cache="yes"/>
</ontermdigit>
<ontermdigit value="#">
<goto value="helloworld-handler.php?key=pound"
submit="*"
method="get"
cache="yes"/>
</ontermdigit>
</block>
</callxml>
<?PHP
header ("Cache-Control: no-cache");
$s = $HTTP_GET_VARS["key"];
echo "<?xml version="1.0" encoding="UTF-8" ?> ";
echo "<callxml> ";
echo " <block label=" $s "> ";
if ($s == "star") {
echo " <text>you pressed the star key.</text> ";
} else {
echo " <text>you pressed the pound key.</text> ";
}
echo " </block> ";
echo "</callxml>";
?>
| ANNOTATIONS: EXISTING POSTS |
| login |
|