Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have following code to make phone call using at commands in c# phone using gsm modem. Call successfully establish but when I receive call no voice hear nothing happened. Question is how to enable my laptop mic and speaker when phone call is establish the default software of my gsm modem is supported voice call I'm successfully make and receive phone call with default software of my gsm modem here is my code

System.IO.Ports.SerialPort comPort;
comPort = new System.IO.Ports.SerialPort("COM17", 115200, System.IO.Ports.Parity.None, 8, StopBits.One);
comPort.Open();
comPort.DtrEnable = true;

//Switch to Voice Mode
comPort.Write("AT+FCLASS=8" + System.Convert.ToChar(13).ToString());

//Call Number
comPort.Write("ATD+123456789;" + System.Convert.ToChar(13).ToString());
System.Threading.Thread.Sleep(17000);

//Enter Voice-Transmission Mode
comPort.Write("AT+VTX" + System.Convert.ToChar(13).ToString());
Posted

1 solution

you must use api for control media of windows.
search it from google
 
Share this answer
 
Comments
Aarees 22-May-14 9:04am    
May i know which api is used?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900