Next Incoming Call Settings Tutorial

This tutorial describes how to get and set the next incoming call type.

The GSM has a Single Numbering Scheme. A subscriber has one directory MSISDN number for all type of call like voice, Fax and data. The network does not detect the type of inbound calls. The subscriber to select the bearer service to use for the inbound calls.

  1. Get the current setting using RMobilePhone::GetIncomingCallType(). The possible types of settings are described in the RMobilePhone::TMobilePhoneIncomingCallType enum. Settings are encapsulated in a packaged call parameters RMobileCall::TMobileDataCallParamsV1 object or a subclass.
  2. Set the next incoming call type using RMobilePhone::SetIncomingCallType()
  3. Use RMobilePhone::NotifyIncomingCallTypeChange() to get the notification of any changes to the next incoming call type.

Next incoming call example

The following code gets the current incoming call type setting, and checks if it is voice.

The code assumes iMobilePhone is an RMobilePhone object.

RMobilePhone::TMobilePhoneIncomingCallType callType;
RMobileCall::TMobileDataCallParamsV1 mobileCallParams;
RMobileCall::TMobileDataCallParamsV1Pckg mobileCallParamsPckg(mobileCallParams);
TRequestStatus status;

iMobilePhone.GetIncomingCallType(status, callType, mobileCallParamsPckg);
User::WaitForRequest(status);
User::LeaveIfError(status.Int());

if (callType == RMobilePhone::EIncomingVoice)
    {
     //do something
    }