<?xml version="1.0"?>
<!-- @ 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>

  <var name="state" expr="0"/>
  <var name="saved" />
  <var name="which" expr="'580'"/>
  <form>
    <subdialog name="sub1" fetchhint="prefetch" 
      srcexpr="'cgi-bin/' + which + '.ircgi'">
      <filled>
        <conf:comment>state = <value expr="state"/>, saved = <value expr="saved"/>, 
          sub1.epoch = <value expr="sub1.epoch"/></conf:comment>
        <if cond="state == 0">
          <assign name="state" expr="1"/>
          <assign name="saved" expr="sub1.epoch"/>
          <clear namelist="sub1"/>
        <elseif cond="state == 1"/>
          <if cond="sub1.epoch &gt; saved">
            <conf:pass/>
          <else/>
            <conf:fail expr="'saved was ' + saved + '; subdialog returned ' + sub1.epoch"/>
          </if>
        </if>
      </filled>
    </subdialog>
  </form>
</vxml>
