Call Method
   String SayWithDigitEvent (String NotificationID, String Text, String LastDigits, int MaxNumbers)
         Notification ID
         Text to say
         Specifies terminating digits. Valid values ['0'-'9', '#', '*']
         Specifies maximum amount of digits to gather.
Return value
         Digits that was pressed on the phoneset keypad
C# Example Switch to language: [VB.NET]
  //Create personalizer object and Session object
  PersonalizerRef.Personalizer pers = new PersonalizerRef.Personalizer() ;
  SessionRef.Session sess = new SessionRef.Session() ;
  string SessionID = "";
      SessionID = pers.CreateSession("LogonName", "Password");
      //Create Phone notification object
      PhoneRef.Phone objPhone = new PhoneRef.Phone() ;
      string PhoneNotifID = sess.CreatePhoneNotification(SessionID);
      string resp=objPhone.SayWithDigitEvent(PhoneNotifID,
              "To play file press 0, otherwise press 9", "09" ,4);
      if(resp == "0"){
          resp = objPhone.PlayFileWithDigitEvent(PhoneNotifID, "Prompt.wav", "012", 4);
      objPhone.HangUp(PhoneNotifID) ; // close connection
  catch(Exception e){
      //Print exception message e.Message