Hi at all,
I have a problem with dtmf tones on motorola A1000.
I'm using SendDTMFTones of RMobilePhone (EtelMM.h) but the application crashes immediately and I'm not able to understand why.
Someone could help me?
Thanks
Filla
This is the source code that I use.
RTelServer m_iTelServer;
User::LeaveIfError(m_iTelServer.Connect());
TInt iCounter = 0;
RTelServer::TPhoneInfo aInfo;
User::LeaveIfError(m_iTelServer.GetPhoneInfo(iCounter, aInfo));
User::LeaveIfError(m_iPhone.Open(m_iTelServer,aInfo.iName));
TInt aCount;
User::LeaveIfError(m_iPhone.EnumerateLines(aCount));
EnumerateLinesOnLog(aCount);
RLine m_iLine;
RCall m_iCall;
RMobilePhone m_iPhone;
RMobilePhone::TLineInfo aLineInfo;
User::LeaveIfError(m_iPhone.GetLineInfo(2,aLineInfo));
User::LeaveIfError(m_iLine.Open(m_iPhone,aLineInfo.iName));
User::LeaveIfError(m_iCall.OpenNewCall(m_iLine));
RCall::TStatus callStatus;
m_iLine.GetStatus(callStatus);
if(callStatus==RCall::EStatusConnected){
TRequestStatus aReqStatus:
m_iPhone.SendDTMFTones( aReqStatus, _L("p123"😉); --------->>>> CRASH
}