Phone


WaitDigits

Wait user response

Call Method
   String WaitDigits (int Timeout, int MaxNumbers, String LastDigit) throw Exception
Parameters
   Timeout
         Specifies maximum timeout value for digits gathering operation
   MaxNumbers
         Specifies maximum amount of digits to gather. Valid range [1..32]
   LastDigit
         Specifies terminating digit. Valid values ['0'-'9', '#', '*']
Return value
         Entered digits
JAVA Example
  Personalizer pers = null;
  Session sess = null;
  try{
      //Create personalizer object and Session object
      pers = new Personalizer();
      sess = pers.CreateSession("LogonName", "Password");
      //Create Phone notification object
      Phone objPhone = sess.CreatePhoneNotification();
      objPhone.Call("1-800-123-4567");
      objPhone.Say("Can you hear this text? If yes press 0.");
      String resp = objPhone.WaitDigits(PhoneNotifID,30,1,"#") ; //Get response from user
      objPhone.PlayDigits(resp) ; //playback user response
      objPhone.HangUp() ; // close connection
      objPhone.Release();
      sess.Release();
  }
  catch(Exception e){
      //Print exception message e.Message
      System.out.println(e.Message);
      sess.Release();
  }