This tutorial describes how to send the Dual Tone Multi Frequency (DTMF) tones to the network.
Dual Tone Multi-Frequency (DTMF) is a touch tone system used for choosing menu options in communication with an automated call handling service.
Tones can only be sent over an active and connected voice calls. The caller does not need a handle to the specific call. The telephony system can send the tones over the voice calls that are connected.
The following code checks that if a string of DTMF tones can be sent, and if so, sends the tone sequence specified in KTones.
The code assumes iMobilePhone is an RMobilePhone object.
TUint32 dtmfCaps; User::LeaveIfError(iMobilePhone.GetDTMFCaps(dtmfCaps)); if (dtmfCaps & RMobilePhone::KCapsSendDTMFString) { _LIT(KTones, "#1234"); TRequestStatus status; iMobilePhone.SendDTMFTones(status, KTones); User::WaitForRequest(status); User::LeaveIfError(status.Int()); }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.