<?xml version="1.0" encoding="UTF-8"?>
<!-- @ Copyright 1998-2003 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. @ --> 
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"
xmlns:conf="http://www.w3.org/2002/vxml-conformance"
>

<catch><conf:fail expr="'catch-all caught ' + _event"/></catch>


<!-- basic bridge transfer

Test environment requirements:

1. Valid destination address
2. Destination is available to accept incoming calls
3. Destination answers incoming call
4. Destination hangs up before originator.

-->


<form>
   
   <transfer name="xfer" dest="tel:14159907845" bridge="true"> 
   
     <filled>

       <if cond="xfer == 'busy'">
         <conf:fail reason="Destination was busy."/>

       <elseif cond="xfer == 'network_busy'"/>
         <conf:fail reason="An intermediate network was busy."/>

       <elseif cond="xfer == 'noanswer'"/>
         <conf:fail reason="Destination did not answer within the specified time."/>
 
       <elseif cond="xfer == 'unknown'"/>
         <conf:fail reason="Transfer failed for an unknown reason."/>
 
       <elseif cond="xfer == 'near_end_disconnect'"/>
         <conf:fail reason="The originator disconnected the destination 
          by issuing a hangup command."/>

       <elseif cond="xfer == 'maxtime_disconnect'"/>
         <conf:fail reason="transfer time reached the maxtime value."/>
 
       <elseif cond="xfer == 'network_disconnect'"/>
         <conf:pass reason="The network disconnected the call."/>
 
       <elseif cond="xfer == 'far_end_disconnect'"/>
         <conf:fail reason="The destination hung up."/>
 
       </if>
        
     </filled>
   </transfer>

</form>

</vxml>
