phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp
branchRCL_3
changeset 39 b8d67d6176f5
parent 31 ba54057fe027
child 58 40a3f856b14d
--- 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