Routing a voice call between the earpiece and the loudspeaker on Symbian
Note: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.
This snippet requires the following capabilities:
Because of the capability requirements, self-signing is not possible. A Developer Certificate is needed.
The following capabilities and libraries are required:
CAPABILITY ReadUserData WriteUserData ReadDeviceData WriteDeviceData
The required headers files are:
- include <telephonyinternalcrkeys_partner.h> //from SDK API Plug-in
- include <centralrepository.h> //CRepository
A simple way to switch the voice call routing between the earpiece and the loudspeaker is shown in the code snippet below. The routing mode is changed by reading the value of the Central Repository key and rewriting the opposite value.
TInt errNo =