phoneengine/phonemodel/src/cpemessagehandler.cpp
changeset 1 838b0a10d15b
parent 0 5f000ab63145
child 2 c84cf270c54f
--- a/phoneengine/phonemodel/src/cpemessagehandler.cpp	Mon Jan 18 20:18:27 2010 +0200
+++ b/phoneengine/phonemodel/src/cpemessagehandler.cpp	Tue Jan 26 11:57:27 2010 +0200
@@ -1515,16 +1515,7 @@
             RemovePreAndPostFix( number );
   
             iDataStore.SetRemotePhoneNumber( number, aCallId );
-            }
-        
-        // The Colp number is stored to remoteparty in connected state.
-        TPEPhoneNumber colpNumber = iCallInfo->iRemoteParty.iRemoteNumber.iTelNumber;
-        RemovePreAndPostFix( colpNumber );
-        iDataStore.SetRemoteColpNumber( colpNumber, aCallId ); 
-        TEFLOGSTRING3( 
-            KTAMESINT, 
-            "PE CPEMessageHandler::SetPhoneNumberForCallLogging, colp number: '%S', call id: %d", 
-            &colpNumber, aCallId );
+            }            
         }
     else if ( iDataStore.CallDirection( aCallId ) == RMobileCall::EMobileTerminated )
         {
@@ -1750,9 +1741,6 @@
     // logging works OK (see CPEMessageHandler::SetPhoneNumberForCallLogging).  
     iDataStore.SetPhoneNumber( KNullDesC() );
     
-    // COLP number is updated in connected state 
-    UpdateRemotePartyInfo();
-   
     return ECCPErrorNone;
     }
 
@@ -2902,9 +2890,14 @@
 // CPEMessageHandler::HandleRemotePartyInfoChanged
 // -----------------------------------------------------------------------------
 //
-void CPEMessageHandler::HandleRemotePartyInfoChanged()
-    {
-    UpdateRemotePartyInfo();      
+void CPEMessageHandler::HandleRemotePartyInfoChanged( const TInt aCallId )
+    {        
+    UpdateRemotePartyInfo(); 
+    
+    if ( iDataStore.RemoteColpNumber( aCallId ).Length() )
+        {
+        iModel.SendMessage( MEngineMonitor::EPEMessageColpNumberAvailable );
+        }
     }