using System;
using IVRForBeginners;

public class Hello : NetClientCall
{

 public void Answer()
 {
  Synthesizer syn;

  playMessage("helloworld");
  waitIfPlaying();

  syn = getSynthesizer();

  syn.speak("Please press a key on your telephone's keypad.");
  inputWait(1, '#', 10000);

  syn.speak("You pressed ...");

  if ( inputAvailable() > 0 )
   syn.speak( getChar().ToString() );

  else
   syn.speak("nothing.");

  syn.wait();
 }

}