<?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>


<!-- far_end_disconnect reported when far-end disconnects before platform
     or originator during a 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.

NOTE: Need to configure dest to a number that will hang up on the caller
-->
<catch event="connection.disconnect.transfer">
   <conf:fail reason="Originator hung up before called party."/>
</catch>
<form>
   <transfer name="xfer" dest="tel:+18005551212" bridge="true"> 
     <filled>
     
       <if cond="xfer == 'far_end_disconnect'">
         <conf:pass />
       <else/>
         <conf:fail expr="'expected far_end_disconnect; got ' + xfer"/>
       </if>
     </filled>
   </transfer>
</form>
</vxml>
