Getting the Identifier of the Current Bearer

This tutorial explains how to get the service ID of the current bearer that the server MTM is currently using.

Procedure

  1. Create an instance of the CMsvSession class.

  2. Get the service ID (TMsvId) of the connected server MTM.

  3. Call the CMsvSession::ServiceAccessPointId() function, passing the following parameters:

    IMPORT_C Tint ServiceAccessPointId(TMsvId aServiceId, TUint32& aAccessPointId)

Result

On return, the TUint32 parameter stores the currently connected bearer identifier.