Call Information Tutorial

This tutorial describes how to get the call information.

The RMobileCall::GetMobileCallInfo() must be used to retrieve the call information. The retrieved information contains :

  • a bitmask that specifies which of the optional fields are set in the retrieved information

  • call origination information, such as call name, ID, start time, service

  • remote party information

  • call status information and flags

  1. Use RMobileCall::GetMobileCallInfo() to retrieve the call inormation.
  2. The above function should return a RMobileCall::TMobileCallInfoV1.
  3. The bit mask of the optional field is returned in RMobileCall::TMobileCallInfoFlags.
  4. The remote party information is returned in RMobileCall::TMobileCallRemotePartyInfoV1.
  5. Notify the client applications using RMobileCall::NotifyRemotePartyInfoChange().

Call information example

The following code gets the identity of a remote party, if it is available:

void CClientApp::RemoteInfoL(const RMobileCall& aCall, TBuf<RMobileCall::KCallingNameSize>& aName)
    {
     RMobileCall::TMobileCallRemotePartyInfoV1 remoteInfo;
     RMobileCall::TMobileCallInfoV1 callInfo;
     RMobileCall::TMobileCallInfoV1Pckg callInfoPckg(callInfo);     
  User::LeaveIfError(aCall.GetMobileCallInfo(callInfoPckg));
     if (callInfo.iRemoteParty.iRemoteIdStatus == RMobileCall::ERemoteIdentityAvailable)
        {
        aName = callInfo.iRemoteParty.iCallingName;
        }
    }