| CallXML 2.0 Development Guide | Home | Frameset Home |
|
<title>Demonstration Session Trigger Application</title>
<form name="SampleForm"
action="http://session.voxeo.net/CallXML.start" method="POST">
<input type="hidden" name="tokenid" value="sometoken">
<input type="hidden" name="resulturl" value="http://mywebserver.com/Start.html">
Phone number to call:<br>
<input type="text" name="Phone" size="20" maxlength="20" value=""><br><br>
Enter your text to say here:<br>
<input type="text" name="TTS" size="100" value=""><br><br>
<input type="reset" value="Clear">
<input type="submit" name="submit" value="Give me a call!">
</form>
<?xml version="1.0" encoding="UTF-8"?> <callxml version="2.0">
<%
'------------------------------------------------------------------------
' Need to use ASP to grab the variables from the querystring.
'------------------------------------------------------------------------
Phone = request.querystring("phone")
Message = request.querystring("TTS")
'----------------------------------------------------------------------------
' Now we will transfer those ASP variables to callxml variables
'----------------------------------------------------------------------------
response.write "<assign var=""Phone"" value=""" & Phone & """/>"
response.write "<assign var=""Message"" value=""" & Message & """/>"
%>
<call value="$Phone;" maxtime="30s"/>
<onanswer>
<block label="MessageBlock" repeat="3">
<text>$Message;</text>
<wait value="3s"/>
</block>
</onanswer>
<oncallfailure>
<log value="Call failed to connect."/>
</oncallfailure>
</callxml>
| ANNOTATIONS: EXISTING POSTS |
| login |
|