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.
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 }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.