-
October 20th, 2012, 09:52 AM
#1
Unable to transfer call using AT Command
I have created a console application that connects to my modem using AT Commands. I am able to dial a number and it works fine.
I want to transfer a call to a different number, and I am unable to achieve this. The modem first dials the number 5052, drops the line and then dials 5056. I am using the hook-flash option that is used to transfer the call but it is not working, instead it is dropping and initiating a new call.
Code:
SerialPort port = new SerialPort("COM3", 115200);
port.Open();
port.ReadTimeout = 5000;
port.NewLine = "\r";
port.WriteLine("ATZ"); // reset the modem
port.ReadTo("OK\r\n"); // wait for "OK" from modem
port.WriteLine("ATDTW5052@"); // dial number with dialtone
port.WriteLine("ATDT!5056"); // dial number with dialtone
string response = port.ReadTo("\r").Trim(); // read until first newline
Console.WriteLine(response);
//port.Close();
-
October 21st, 2012, 05:56 AM
#2
Re: Unable to transfer call using AT Command
Does your modem support these "ATDTW" and "ATDT!" commands?
Did you try to send them using HyperTerm?
Victor Nijegorodov
-
October 21st, 2012, 12:06 PM
#3
Re: Unable to transfer call using AT Command
I have tried ATDTW and it works. The transfer using flash hook doesn't seem to work.
Since ATDTW is working, can i assume that my modem support ATDT! as well?
Is there a way to find out AT commands that are compatible?
-
October 21st, 2012, 12:21 PM
#4
Re: Unable to transfer call using AT Command
Originally Posted by fawadhq
Is there a way to find out AT commands that are compatible?
Yes, you just have to read the documentation of your modem.
Victor Nijegorodov
-
October 21st, 2012, 12:25 PM
#5
Re: Unable to transfer call using AT Command
Originally Posted by fawadhq
I have tried ATDTW and it works. The transfer using flash hook doesn't seem to work.
Did you try ATD! instead?
Victor Nijegorodov
-
October 21st, 2012, 12:33 PM
#6
Re: Unable to transfer call using AT Command
Yes even tried ATD! and it didn't work.
It drops the first call and then dials the second number.
Where as what i want is to transfer the call.
-
October 21st, 2012, 12:34 PM
#7
Re: Unable to transfer call using AT Command
As far as I understand it that's how it should work. ATDT! cause the modem to go on-hook a short period. See http://michaelgellis.tripod.com/modem.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|