ad_page_contract {
    Asks the user to input the first few letters of the employee last name or office
    to look up.

    You may use this software free under the GNU General Public License.
    
    @param passcode  The 4-digit passcode, in case someone tries to access this page w/out going through passcode-check.tcl.
    
    @author Eve Andersson, eveander@eveander.com
    @creation-date February 24, 2001
} {
    passcode:notnull,integer
}



if { [string compare $passcode [vxml_tellme_phone_dir_passcode]] != 0 } {
    ns_log Notice "exiting /tellme/name-search-input.tcl due to incorrect passcode"
    return
}

set content "<vxml>
<form id=\"phone_dir_name_entry\">
   <field name=\"letters_of_name\">
      <prompt>
      <audio>Please enter the first few letters of a last name or office, using your key pad.</audio>
      </prompt>
      <grammar>TM_DTMF_DigitString</grammar>
   </field>
   <filled>
      <goto next=\"name-search-results.tcl?letters_of_name={letters_of_name}&amp;passcode=$passcode#name_search\"/>
   </filled>
   <nomatch>
      <audio>I'm sorry, I did not understand your response...  Using your key pad, please enter the first few letters of the last name or office.</audio>
      <listen/>
   </nomatch>
   <noinput>
      <audio>I'm sorry, I didn't hear your response...  Using your key pad, please enter the first few letters of the last name or office.</audio>
      <listen/>
   </noinput>
</form>
</vxml>"

vxml_return_content $content