voipplugins/sipconnectionprovider/src/scpservicehandlerbase.cpp
branchRCL_3
changeset 12 876a3df1f464
parent 9 bddb6d4447db
child 14 be41ab7b952f
--- 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 );
     }