| CallXML 2.0 Development Guide | Home | Frameset Home |
<run value="same_doc.xml#another_block_in_this_doc"/>
| cache | Data Type: (yes|no) | Default: none - attribute is optional |
| Allows manual override over the caching mechanism. If this attribute is empty the default system caching is used. "yes" should force the system to use the cache all the time, "no" means that no cache should be used at all. | ||
| method | Data Type: (GET|POST|BIN|ASC) | Default: none - attribute is optional |
The method attribute specifies the HTTP method to use when sending the request. Allowable values for the method attribute are:
Any other values defined for this attribute will result in a fatal error. If no method is specified, then it will always default to 'GET'. | ||
| submit | Data Type: (variable name) | Default: none - attribute is optional |
| List of variables to submit to the called URL/URI can be "all" or "*" for everything, or a comma delimited list of variables to submit: submit = "Variable1, Variable2, Variable3, Variable5, Variable9" Note that you can also specify "nothing" if no variables are to be submitted. If non-existant variable names are specified a fatal error will result. Also, if "all" or "*" is specified, no other variable names should be listed with it. | ||
| value | Data Type: URI | Default: none - attribute is required |
| Either a full URL (http://MyServer.com/MyDocument.xml) or a local URI pointing to a <block> label in the same CallXML file (e.g., #main_menu). Supported URL formats include:
value="ftp://me:door@ftp.me.com:2345/myapp/start.xml" | ||
| var | Data Type: (variable name) | Default: none - attribute is optional |
| A valid variable name in which to store the new session ID. | ||
| onerror type="document" | Document was unable to be fetched for all the reasons web servers are unavailable |
| onerror type="serverbusy" | No sessions available on the server for <run> or <answer> etc |
| onerror type="execution" | Indicates that a child session specified in the <run> tag points to an invalid URI. |
| <?xml version="1.0" encoding="UTF-8"?> <callxml version="2.0"> <block> <assign var="ParentSessionID" value="$session.ID;"/> <assign var="NumToCall" value="1112223333"/> <run value="Call_Target.cfm" submit="*" method="get" var="NewSessionID" cache="yes"/> <block label="HoldMusic" repeat="3"> <playaudio format="audio/wav" value="RingTone.wav" termdigits=""/> <onexternalevent value="Success"> <conference targetsessions="$session.EventsenderID;"/> <hangup/> </onexternalevent> <onexternalevent value="Busy"> <text> All lines are currently busy. Please hang up and try your call again later. </text> <hangup/> </onexternalevent> <onexternalevent value="TimedOut"> <text> There is no answer. Please hang up and try your call again later. </text> <hangup/> </onexternalevent> </block> </block> </callxml> |
| <?xml version="1.0" encoding="UTF-8"?> <callxml version="2.0"> <block label="B1"> <call value="$NumToCall;" maxtime="20s" callerID="6666666666"/> <onanswer> <sendevent value="Success" session="$ParentSessionID;"/> <wait value="Unlimited"/> </onanswer> <oncallfailure value="busy"> <sendevent value="busy" session="$ParentSessionID;"/> </oncallfailure> <oncallfailure value="noanswer"> <sendevent value="noanswer" session="$ParentSessionID;"/> </oncallfailure> <oncallfailure value="unreachable"> <sendevent value="unreachable" session="$ParentSessionID;"/> </oncallfailure> <oncallfailure value="rejected"> <sendevent value="rejected" session="$ParentSessionID;"/> </oncallfailure> <oncallfailure value="unknown"> <sendevent value="unknown" session="$ParentSessionID;"/> </oncallfailure> <onmaxtime> <sendevent value="TimedOut" session="$ParentSessionID;"/> </onmaxtime> </block> </callxml> |
| <?xml version="1.0" encoding="UTF-8"?> <callxml version="2.0"> <assign var="ParentSessionID" value="$session.ID;"/> <block label="B_0"> <!-- THIS SAMPLE ASSUMES THAT WE WANT TO DO A DB LOOKUP IN OUR --> <!-- CHILD SESSION, AND RETURN THE VALUE TO THE PARENT SESSION --> <run value="timer.jsp" submit="*" method="get" var="timerSessionID"/> <playaudio format="audio/wav" value="spidey.wav"/> <!-- CATCH ~ANY~ EVENT THAT DOESNT HAVE AN EXPLICIT HANDLER --> <!-- WITH AN 'ANONYMOUS' EVENT HANDLER --> <onexternalevent> <log>** ANONYMOUS EVENT CAUGHT ***</log> <log>** DYNAMIC VALUE RETURNED FROM CHILD SESSION:</log> <log>*** $session.eventvalue; ***</log> </onexternalevent> </block> </callxml> |
| <?xml version="1.0" encoding="UTF-8"?> <callxml version="2.0"> <wait value="5s"/> <!-- HERE, HIT OUR DATABASE, WHICH --> <!-- RETURNS THE VALUE OF 'someDynamicValue' --> <!-- DYNAMICALLY POPULATE THE 'send event' VALUE WITH THIS DATA --> <sendevent value="someDynamicValue" session="$ParentSessionID;"/> </callxml> |
| ANNOTATIONS: EXISTING POSTS |
| login |