Dial mobile phone via C# program

后端 未结 3 1986
陌清茗
陌清茗 2021-01-12 05:39

I m trying to Dial mobile phone via C# program. Below Show my Program. In this, When i Click my Dial Button it dial the number(Destination number) which i given in my progra

3条回答
  •  攒了一身酷
    2021-01-12 06:00

    Here is my working dialing cord it rings the phone Don't knows that how to get the voice input and out put from port I'm using huwavi E173 dongle.Here is my working cord C#

    SerialPort port = new SerialPort();
    port.Open();
    string t = port.ReadExisting();
    Thread.Sleep(100);
    
    string cmd = "ATD";
    Thread.Sleep(100);
    string phoneNumber = "071********";
    Thread.Sleep(100);
    port.WriteLine(cmd + phoneNumber + ";\r");
    
    port.Close();
    

提交回复
热议问题