Sending AT commands and DTMF during an active call in UIQ
| Tue, 2005-09-13 15:32 | |
|
First I set up a phonecall programatically
Code: RCall call; call.Dial(number); then I loan this calls dataport Code: TRequestStatus stat; call.LoanDataPort(stat, dataport); User::WaitForRequest(stat); and then open the dataport Code: RCommServ server; RComm comm; comm.Open(server, dataport.iPort, ECommShared); finally writing to the port Code: _LIT8(KATCmd, "AT+VTS = ? \n"); comm.Write(stat, KATCmd); User::WaitForRequest(stat); ViewMessage(stat.Int()); The problem here is that stat.Int() is -29, which is KErrCommsLineFail Solutions? Magnus |
|






Forum posts: 57
!!!!
Forum posts: 57
Forum posts: 45
--
Kibi
Give me immortality - or give me death!
Forum posts: 57
RComm comm;
commServer.Connect();
_LIT(KCsyName, "ECMUX");
User::LeaveIfError(commServer.LoadCommModule(KCsyName));
TBufC<12> port(_L("MUXCOMM::1"));
comm.Open(commServer, port, ECommShared);
TRequestStatus stat;
_LIT8(buf8, "AT+VTS=1,2,3\r\n");
comm.Write(stat, buf8);
User::WaitForRequest(stat);
comm.Close();
commServer.Close();
This should genereate the DTMFsounds according to pressing the buttons 1,2,3. (in that order)
M
Forum posts: 45
--
Kibi
Give me immortality - or give me death!
Forum posts: 28
Hi,
I have one question.
How is exactly the datacall established??
From where the connection starts and exactly do the AT COMMANDS go thru ETEL for the connection ??
Forum posts: 57
Hi,
This is not a datacall. Only after an ordinary call is ongoing, this part of the code is executed.
The DTMF tones is just "played" over an already ongoing call.
Magnus