phoneengine/loghandling/src/cpeloghandling.cpp
branchRCL_3
changeset 61 41a7f70b3818
parent 9 8871b09be73b
child 62 5266b1f337bd
--- a/phoneengine/loghandling/src/cpeloghandling.cpp	Thu Aug 19 09:54:27 2010 +0300
+++ b/phoneengine/loghandling/src/cpeloghandling.cpp	Tue Aug 31 15:14:29 2010 +0300
@@ -186,15 +186,15 @@
          CallIdCheck::IsVideo( aCallId )
        ) 
         {
-		CPELogInfo* logInfo( NULL );
+        CPELogInfo* logInfo( NULL );
         TRAP( errorCode, logInfo = CPELogInfo::NewL(); );
             
         if ( logInfo )
             {
             // continue gathering log data
             
-		    // set phonenumber and/or voip address
-			SetRemoteContact( aCallId, *logInfo );
+            // set phonenumber and/or voip address
+            SetRemoteContact( aCallId, *logInfo );
             logInfo->SetEventData( aCallId, iDataStore ); 
             TRAP_IGNORE( 
                 // Contact link can be big, not critical for basic functionality.
@@ -394,16 +394,13 @@
     
     if ( EPECallTypeVoIP == iDataStore.CallType( aCallId ) )
         {
-        if ( EFalse == IsValidPhoneNumber( aLogInfo.PhoneNumber() ) )
-            {
-            // voip address field must be used for voip calls if
-            // string is not valid for CS call.
-            aLogInfo.SetVoipAddress( aLogInfo.PhoneNumber() );
-            aLogInfo.SetPhoneNumber( KNullDesC() );
-            }
+        // voip address field must be used for voip calls
+        aLogInfo.SetVoipAddress( aLogInfo.PhoneNumber() );
+        aLogInfo.SetPhoneNumber( KNullDesC() );
         }
     }
 
+
 // -----------------------------------------------------------------------------
 // CPELogHandling::SaveCallInfoL
 // Update log external data.
@@ -844,23 +841,4 @@
     return CPELogExtensionWrapper::NewLC( aPluginUid );
     }
 
-// -----------------------------------------------------------------------------
-// CPELogHandling::IsValidPhoneNumber
-// -----------------------------------------------------------------------------
-//
-TBool CPELogHandling::IsValidPhoneNumber( 
-        const TDesC& aString ) const
-    {
-    _LIT( KAllowedCharsInPhoneNumber, "0123456789*+pw#PW" );
-    
-    TLex input( aString );
-    TPtrC validChars( KAllowedCharsInPhoneNumber );
-    while ( validChars.Locate( input.Peek() ) != KErrNotFound )
-        {
-        input.Inc();
-        }
-    
-    return ( !input.Remainder().Length() );
-    }
-
 // End of File