diff -r 6134b5029079 -r 876a3df1f464 voipplugins/sipconnectionprovider/src/scpservicehandlerbase.cpp --- a/voipplugins/sipconnectionprovider/src/scpservicehandlerbase.cpp Wed Apr 14 15:49:55 2010 +0300 +++ b/voipplugins/sipconnectionprovider/src/scpservicehandlerbase.cpp Tue Apr 27 16:28:03 2010 +0300 @@ -145,7 +145,14 @@ } else { - profileHandler.UnregisterProfile( sipProfileId ); + error = profileHandler.UnregisterProfile( sipProfileId ); + if ( KErrNotFound == error ) + { + SCPLOGSTRING3( + "CScpServiceHandlerBase[0x%x]::DeregisterProfile - No profile with ID: %d", + this, + sipProfileId ); + } } } @@ -193,6 +200,16 @@ SCPLOGSTRING2( "CScpServiceHandlerBase[0x%x]::HandleSipProfileForcedDisable", this ); + CScpProfileHandler& profileHandler = iSubService.ProfileHandler(); + + CScpSipConnection* sipConnection = + profileHandler.GetSipConnection( iSubService.SipProfileId() ); + + if ( sipConnection ) + { + sipConnection->ForceDisable(); + } + HandleSipConnectionEvent( iSubService.SipProfileId(), EScpDeregistered ); }