diff -r 6b911d05207e -r bc5a64e5bc3c phoneengine/phonemodel/src/cpemessagehandler.cpp --- a/phoneengine/phonemodel/src/cpemessagehandler.cpp Wed Jun 23 18:12:20 2010 +0300 +++ b/phoneengine/phonemodel/src/cpemessagehandler.cpp Tue Jul 06 14:15:47 2010 +0300 @@ -2404,7 +2404,7 @@ // Checks if emergency call is allowed. // ----------------------------------------------------------------------------- // -TBool CPEMessageHandler::IsEmergencyAllowed() const +TBool CPEMessageHandler::IsNetworkConnectionAllowed() const { TBool networkConnectionAllowed( EFalse ); //It is safe to ignore error code here: a default value of EFalse is used if the get fails @@ -2821,6 +2821,44 @@ } // ----------------------------------------------------------------------------- +// CPEMessageHandler::AddSIMRejectedMoCsCallToLog +// ----------------------------------------------------------------------------- +// +TInt CPEMessageHandler::AddSIMRejectedMoCsCallToLog( const TInt aCallId ) + { + TInt errorCode( ECCPErrorGeneral ); + + errorCode = iCallHandling.GetCallInfo( *iCallInfo, aCallId ); + + if ( errorCode == ECCPErrorNone ) + { + TPEState callState; + callState = iCallHandling.GetCallState( aCallId ); + TPECallType callType; + callType = iDataStore.CallType( aCallId ); + + errorCode = ECCPErrorNotFound; + + if ( EPEStateIdle == callState + && EPECallTypeCSVoice == callType ) + { + SetPhoneNumberForCallLogging( aCallId ); + + errorCode = UpdateClientInfo( aCallId ); + + // Calls have to log also without a contact (ECCPErrorNotFound). + if ( errorCode == ECCPErrorNone || errorCode == ECCPErrorNotFound ) + { + // Save the rest of information to EngineInfo. + SetLoggingInfo( aCallId, callState ); + errorCode = iLogHandling.SaveCallEntry( aCallId ); + } + } + } + return errorCode; + } + +// ----------------------------------------------------------------------------- // CPEMessageHandler::HandleDialCall // Handles dial message from dial service //