#define STRICT
#include <windows.h>
#include "C_ClientCall.h"
#include "C_Synthesizer.h"

void CALLBACK Answer(H_CALL call)
{
 char  c[] = { 0, '.', 0 };
 H_SYN syn;

 C_playMessage(call, "helloworld");
 C_waitIfPlaying(call, -1);

 if ( syn = C_getSynthesizer(call) )
 {
  S_speak(syn, "Please press a key on your telephone's keypad.");
  S_wait(syn, -1);

  C_inputWait1(call, 1, '#', 10000);

  S_speak(syn, "You pressed ");

  if ( c[0] = C_getChar(call) )
   S_speak(syn, c);

  else 
   S_speak(syn, " nothing.");

  S_speak(syn, "That was easy, wasn't it?");
  S_wait(syn, -1);
 }

}