diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-6C7AC675-1B86-5192-BC07-B4E4FFE43C9C.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-6C7AC675-1B86-5192-BC07-B4E4FFE43C9C.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,22 @@ + + + + + +Alternative Call Mode Settings TutorialThis tutorial describes how to get and set the alternative call mode information.

Alternating call is a GSM service that allow clients to create a call with two alternating bearer services, for example an alternating voice and data call or an alternating voice and fax call.

Procedure
  • Get the phone alternating call capabilities using RMobilePhone::GetAlternatingCallCaps().

    Capabilities are described in RMobilePhone::TMobilePhoneAlternatingCallCaps.

  • Use RMobilePhone::NotifyAlternatingCallCapsChange() to get the notification of any changes to the capabilities.

  • Get the current alternating call mode using RMobilePhone::GetAlternatingCallMode().

    Modes are described in RMobilePhone::TMobilePhoneAlternatingCallMode.

  • Set the mode to use for the next call using RMobilePhone::SetAlternatingCallMode()

  • Use RMobilePhone::NotifyAlternatingCallModeChange() to get the notification of any changes to the mode.

Alternative call mode example

The following code checks if the phone supports alternative voice and data calls. If the phone supports, it gets the alternative call mode, and checks if the next call is first voice then data.

The code assumes iMobilePhone is an RMobilePhone object.

TUint32 alternatingCaps; +User::LeaveIfError(iMobilePhone.GetAlternatingCallCaps(alternatingCaps)); +if (alternatingCaps & RMobilePhone::KCapsMTVoiceData) + { + RMobilePhone::TMobilePhoneAlternatingCallMode mode; + RMobilePhone::TMobileService firstService; + iMobilePhone.GetAlternatingCallMode(mode, firstService); + if ( (mode == RMobilePhone::EAlternatingModeVoiceData) & + (firstService == RMobilePhone::EVoiceService) ) + { +
See also

Alternative Call Tutorial

\ No newline at end of file