--- a/phoneengine/audiohandling/src/cpegsmaudiodata.cpp Thu Jul 15 18:38:16 2010 +0300
+++ b/phoneengine/audiohandling/src/cpegsmaudiodata.cpp Thu Aug 19 09:54:27 2010 +0300
@@ -35,7 +35,7 @@
// None.
// CONSTANTS
-// None.
+const TInt KDtmfSilent = 0;
// MACROS
// None.
@@ -158,9 +158,14 @@
"AUD CPEGsmAudioData::PlayDtmfTone, aTone = %s, volume = %d",
&aTone,
volume );
-
- iDtmfTonePlayer->SetVolume( volume );
- iDtmfTonePlayer->PlayDtmfTone( aTone );
+
+ // If profile key tones setting is OFF, the volume will be O
+ // Don't play dtmf tone here to avoid interrupting the possible touch tone's playing.
+ if ( KDtmfSilent != volume )
+ {
+ iDtmfTonePlayer->SetVolume( volume );
+ iDtmfTonePlayer->PlayDtmfTone( aTone );
+ }
}
// -----------------------------------------------------------------------------