<?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>
  <form>
    <var name="startTime" expr="new Date ( )"/>
    <catch event="error.badfetch">
      <var name="elapsed" expr="( new Date ( ) ) - startTime"/>
      <if cond="(elapsed &gt; 5000) &amp;&amp; (elapsed &lt; 7000)">
        <conf:comment> Error badfetch correctly thrown for timeout elapsed. </conf:comment>
        <conf:pass/>
        <else/>
        <conf:fail reason="Error badfetch thrown but not for timeout elapsed."/>
      </if>
    </catch>
    <block>
      <goto next="cgi-bin/sleep.ircgi" fetchtimeout="6s"/>
    </block>
  </form>
</vxml>
