Archived:Checking the type and status of an outgoing telephony call using Symbian C++
Article Metadata
Compatibility
S60 3rd Edition, FP1
Article
Overview
Checking the type and status of an outgoing telephony call.
Description
Using Publish & Subscribe keys it is possible to check the type of the outgoing call and also the call state. There are three PS keys which are used for attaching and getting the property values.
const TUid KPSUidTelephonyCallHandling = { 0x101f8787 };
const TUint32 KTelephonyCallState = 0x00000004;
const TUint32 KTelephonyCallType = 0x00000005;
To get the call type:
RProperty iProperty;
iProperty.Get(KPSUidTelephonyCallHandling, KTelephonyCallType, calltype);
Possible enumeration values for call type (TPSTelephonyCallType):
EPSTelephonyCallTypeUninitialized = 0,
EPSTelephonyCallTypeNone,
EPSTelephonyCallTypeCSVoice,
EPSTelephonyCallTypeFax,
EPSTelephonyCallTypeData,
EPSTelephonyCallTypeHSCSD,
EPSTelephonyCallTypeH324Multimedia,
EPSTelephonyCallTypeVoIP
To get the call state information:
iProperty.Get(KPSUidTelephonyCallHandling, KTelephonyCallState, callstate);
Possible enumeration values for call state (TPSTelephonyCallState)
EPSTelephonyCallStateUninitialized = 0,
EPSTelephonyCallStateNone,
EPSTelephonyCallStateAlerting,
EPSTelephonyCallStateRinging,
EPSTelephonyCallStateDialling,
EPSTelephonyCallStateAnswering,
EPSTelephonyCallStateDisconnecting,
EPSTelephonyCallStateConnected,
EPSTelephonyCallStateHold
PS Keys for Call Status & Indicators API is not part of the official S60 SDK but can be found in the Extensions plug-in package for S60 3rd Edition SDK for Symbian OS, for C++, MR. Note that Nokia is not giving any binary compatibility promise for these APIs; neither between platform versions or within a platform version.

