×
Namespaces

Variants
Actions

Archived:Checking the type and status of an outgoing telephony call using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.


Article Metadata
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 2 (17 Aug 2007)
Last edited: lpvalente (23 Nov 2012)

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.

This page was last modified on 23 November 2012, at 19:53.
34 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×