Hey,
I managed to answer an incoming data call using this code:
_LIT(KDataCsyName,"dataport"😉;
RCommServ IRCommServer;
RComm IRComm;
ret=IRCommServer.LoadCommModule(KDataCsyName);
User::LeaveIfError (ret);
TBuf<12> port(_L ("DATAPORT::0"😉);
ret= IRComm.Open(IRCommServer, port, ECommShared);
before using
line.NotifyIncomingCall(aStatus, callName);
Now the RunL() of my Active object gets called even if I receive a data call (iStatus member of RCall::TCalInfo is 1 - EStatusIdle) but it is still trying to connect via IR. If I try to stop it in any way (like sending AT commands through IRComm object, by using its Write() method) it will display an "Unable to connect" message and hangup the call. Does anybody know how to stop IR from connecting so I can get ownership of the call and control it? I'll be gratefull for any information you can provide.
Regards, Aljaz
I was looking at that CoMobi software and it's really cool, so I was thinking about trying to make something like it, too. Have you had any luck lately?
aljaz24 wrote:Hey,I managed to answer an incoming data call using this code:
_LIT(KDataCsyName,"dataport"😉;
RCommServ IRCommServer;
RComm IRComm;
ret=IRCommServer.LoadCommModule(KDataCsyName);
User::LeaveIfError (ret);
TBuf<12> port(_L ("DATAPORT::0"😉);
ret= IRComm.Open(IRCommServer, port, ECommShared);
before using
line.NotifyIncomingCall(aStatus, callName);
Now the RunL() of my Active object gets called even if I receive a data call (iStatus member of RCall::TCalInfo is 1 - EStatusIdle) but it is still trying to connect via IR. If I try to stop it in any way (like sending AT commands through IRComm object, by using its Write() method) it will display an "Unable to connect" message and hangup the call. Does anybody know how to stop IR from connecting so I can get ownership of the call and control it? I'll be gratefull for any information you can provide.
Regards, Aljaz