--- a/phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp Tue May 25 12:41:50 2010 +0300
+++ b/phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp Wed Jun 09 09:41:11 2010 +0300
@@ -383,6 +383,10 @@
{
SendGlobalInfoNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls );
}
+ else if ( IsVoiceCall( aErrorInfo.iCallId ))
+ {
+ SendGlobalWarningNoteL( EPhoneNoteCallInfoCauseValue21 );
+ }
break;
case ECCPErrorMovedPermanently:
@@ -578,4 +582,23 @@
->CallType( aCallId )== EPECallTypeVideo );
}
+// -----------------------------------------------------------
+// CPhoneErrorMessagesHandler::IsVoiceCall
+// -----------------------------------------------------------
+//
+TBool CPhoneErrorMessagesHandler::IsVoiceCall( const TInt aCallId ) const
+ {
+ __LOGMETHODSTARTEND( EPhoneControl, "CPhoneErrorMessagesHandler::IsVoiceCall() ");
+
+ if( aCallId == KErrNotFound )
+ {
+ // Illegal call id, check call type command
+ return ( iStateMachine->PhoneEngineInfo()->CallTypeCommand()
+ == EPECallTypeCSVoice );
+ }
+
+ return ( iStateMachine->PhoneEngineInfo()
+ ->CallType( aCallId )== EPECallTypeCSVoice );
+ }
+
// End of File