Record Voice from Phone Line into the file

Call Method
   String Record (String NotificationID, int Timeout, String LastDigits, int MaxNumbers)
         Notification ID
         Specifies maximum timeout for recording
         Specifies terminating digits. Valid values ['0'-'9', '#', '*']
         Specifies maximum amount of digits to gather.
Return value
         Unique File Name Genereated by Server
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);
      //Record Voice form Line
      string FileName;
      FileName = objPhone.Record(PhoneNotifID, 10, "#", 3);
      objPhone.PlayFile(PhoneNotifID, FileName);
      objPhone.HangUp(PhoneNotifID) ; // close connection
  catch(Exception e){
      //Print exception message e.Message