| CallXML 2.0 Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="2.0">
<block>
<assign var="ParentSessionID" value="$session.ID;"/>
<assign var="NumToCall" value="18001112222"/>
<run value="newCall.xml"
submit="*"
method="get"
var="NewSessionID" />
<block label="HoldMusic"
repeat="3">
<playaudio format="audio/wav"
value="HoldMusic.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>
<onexternalevent value="Error">
<text>
A connection can not be made at this time.
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>
<call value="$NumToCall;"
maxtime="30s"/>
<onanswer>
<sendevent value="Success"
session="$ParentSessionID;"/>
<wait value="unlimited"/>
</onanswer>
<oncallfailure>
<sendevent value="Busy"
session="$ParentSessionID;"/>
</oncallfailure>
<onmaxtime>
<sendevent value="TimedOut"
session="$ParentSessionID;"/>
</onmaxtime>
<onerror>
<sendevent value="Error"
session="$ParentSessionID;"/>
</onerror>
</block>
</callxml>
<?xml version="1.0" encoding="UTF-8"?>
<callxml version="2.0">
<block>
<text>
Preparing to place your call, fruitcake.
</text>
<transfer method="bridged" value="tel:1112223333"
termdigits="*" maxtime="30s" answeronmedia="false"/>
<onhangup>
<text>
Those guys just hung up on you.
</text>
<log value="---- terminated by disconnect ----"/>
<goto value="SomeOtherPage.xml"/>
</onhangup>
<onmaxtime>
<text>
Sorry there, holmes.
You hit max time for the call, and were disconnected.
</text>
</onmaxtime>
<ontermdigit value="*">
<text>
You must have terminated the conference by pressing the star key.
</text>
</ontermdigit>
</block>
</callxml>
| ANNOTATIONS: EXISTING POSTS |
| login |
|