sub Answer 
{
 $kall = $_[0];

 $kall->playMessage("helloworld");
 $kall->waitIfPlaying(-1);

 $syn = $kall->getSynthesizer();
 $syn->speak("Please press a key on your telephone's keypad.");
 $syn->wait(-1);

 $ok = $kall->inputWait1(1, '#', 10000);

 $syn->speak("You entered");

 if ( $ok )
 {
  $syn->speak( $kall->getChar() ); 
 }

 else
 {
  $syn->speak( "nothing." );
 }

 $syn->speak("That was easy, wasn't it?");
 $syn->wait(-1)
}