6

I am trying to make IVR system GSM modem. I am done with calling on number using code below

SerialPort SP = new SerialPort("COM3");
SP.BaudRate = 9600;
SP.Parity = Parity.None;
SP.DataBits = 8;
SP.StopBits = StopBits.One;
SP.RtsEnable = true;
SP.DtrEnable = true;
SP.Encoding = System.Text.Encoding.Unicode;
SP.ReceivedBytesThreshold = 1;
SP.NewLine = Environment.NewLine;
SP.Open();
SP.WriteLine("ATDT0999182542;"+ Environment.NewLine);

Can query to call status using

string ss= SP.ReadExisting();

State of the call. Can be one of the following values:

0 - Active 1 - Held 2 - Dialling 3 - Alerting 4 - Incoming 5 - Waiting

Now my question is, How can i play voice message once call is answered, And can I get the number pressed by user (1,2,3).

Hussein Khalil
  • 1,395
  • 11
  • 29
Hot Cool Stud
  • 1,145
  • 6
  • 25
  • 50

1 Answers1

1

For voice message read about voice mail numbers and their working. Yes you can get the number pressed by the user.

Bilal Qamar
  • 322
  • 1
  • 2
  • 9