<?xml version="1.0"?>
<%@ page contentType="text/xml" %>
  <vxml> 
<!-- Greets the user and asks for ID and pin. Redirects to EmailServlet with request of type login. -->
    <form>  
      <var name="action" expr="'login'"/> <!-- next request type -->
      <block>
	<audio>Welcome to Columbia's E-mail By Voice Service.</audio>
	<goto next="#login"/>
      </block>
    </form>
    
    <form id="login">
      <field name="login">   
	<!-- Grammer for capturing any arbirary number of DTMF digits -->
	<grammar>   
	  <![CDATA[
	  TM_DTMF_DigitString
	  ]]>
	</grammar>    
	<!-- Get user ID -->
	<prompt>    
	  <audio>Please enter your User I D</audio>   
	  <audio src="http://resources.tellme.com/audio/earcons/timeout.wav"/>
	</prompt>     
	<noinput><audio>I'm sorry I didn't get that.</audio>
	  <reprompt/></noinput>
	
	<filled>   
	  <audio>Thank you.</audio>
	  
	  <goto next="#pin"/> 
	</filled>
      </field> 
    </form>
    
    <form id="pin">
      <field name="pin">   
	<!-- Grammer for capturing any arbirary number of DTMF digits -->
	<grammar>   
	  <![CDATA[
	  TM_DTMF_DigitString
	  ]]>
	</grammar>    
	<!-- Get user pin -->
	<prompt>    
	  <audio>Please enter your pin number</audio>   
	  <audio src="http://resources.tellme.com/audio/earcons/timeout.wav"/>
	</prompt>     
	<noinput><audio>I'm sorry I didn't get that.</audio>
	  <reprompt/></noinput>
	<!-- Send a new request to EmailServlet -->
	<filled>   
	  <submit next="apps.email.EmailServlet" method="post" namelist="action login pin"/>
	</filled>
      </field> 
    </form>
  </vxml>







