Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys ,

i just did to call the number by using AT commands.But afer the dial , i cant disconnect the line..do you know any solution for the problem i explained you ?

thanks for your help in advance
Posted
Comments
Sergey Alexandrovich Kryukov 4-Feb-13 17:35pm    
How about a code sample? Use "Improve question".
—SA

1 solution

First of - for lots of details Google "Hayes AT commands" - the first few results will give you plenty of info on what is possible and how to do it.

You hang up calls with ATH. If you are in a binary transmission mode you have to use +++ followed by a 1 sec pause to exit data mode and then use ATH to terminate the call.

Depending on what modem/service you are using there are many variations to take into consideration - many modems support dropping the call by setting the DTR flag on the port, some enter/exit binary mode with a flag instead of/in addition to the AT command. Simply closing your connection to the COM port drops the call with many modem drivers too.
 
Share this answer
 
Comments
Ankur\m/ 6-Feb-13 8:04am    
Fantastic... 5!
beratxt 6-Feb-13 12:47pm    
When İ use Mobile Parnter program , it works and calls ! So device is appropriate for calling..

how will i use ATH command ? can u give any information in C# ? Console.WriteLine("ATH") ?

When i close the port connection . IT DOESNT DROPS TO CALL..EVEN IF I TAKE OFF THE USB MODEM FROM PORT...DOESNT EFFECT..IT CALLS UNTİL SOMEONE ONE OPENS THE TELEPHONE..

AND I AM ABLE TO CALL .. BUT HOW TO TALK ON THE PHONE ? I CANT SEND MY VOICE TO THE PERSON OPENIN TELEPHONE..HOW TO DO IT ?

THANKS FOR NOW
Michiel du Toit 8-Feb-13 3:04am    
You're going to have to provide more details about how you're making the calls to get more help. Are you dialing with a physical modem or using an internet service (and which)? Is the modem on the box running the code or on a different box and what make and model is it? Are you talking to the modem via a COM port or, via a USB interface or via a specialized modem driver?
beratxt 11-Feb-13 9:53am    
Hi ,

The modem ive used is 3G Modem which is usable for Voice.Neither nor web service is used.Im usıng COM PORT via USB 3G MODEM...
Michiel du Toit 12-Feb-13 3:32am    
If you're using a COM port you just write ATH\r\n to the COM port using a Write command to hang up (the same way you would dial using ATD<number>\r\n.

For voice comms I'd recommend looking into TAPI.

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