realtimenetprots/sipfw/ProfileAgent/IETF_Agent/src/Sipietfprofilecontext.cpp
branchRCL_3
changeset 44 0dcb073356a5
parent 43 b5e99d8877c7
child 46 346e49b9ce14
--- a/realtimenetprots/sipfw/ProfileAgent/IETF_Agent/src/Sipietfprofilecontext.cpp	Tue Aug 31 15:32:57 2010 +0300
+++ b/realtimenetprots/sipfw/ProfileAgent/IETF_Agent/src/Sipietfprofilecontext.cpp	Wed Sep 01 12:27:36 2010 +0100
@@ -491,9 +491,7 @@
 //	
 TBool CSIPIetfProfileContext::ShouldRetryRegistration( TInt aError )
 	{
-	return (iProfile && 
-	        AgentObserver().ProceedRegistration(*iProfile, aError) &&
-	        (aError == K503ServiceUnavailable || 
+	return (aError == K503ServiceUnavailable || 
 	        aError == K408TimeOut ||
 	        aError == K500ServerInternalError ||
 		    aError == KErrTimedOut ||
@@ -501,7 +499,7 @@
 		      aError == KErrSIPTransportFailure ||
 		      aError == KErrSIPICMPFailure ||
 		      aError == KErrSIPOutboundProxyNotResponding ) && 
-			 iConnection.State() != CSIPConnection::ESuspended)));
+			 iConnection.State() != CSIPConnection::ESuspended));
 	}
 
 // -----------------------------------------------------------------------------
@@ -564,12 +562,10 @@
         PROFILE_DEBUG3("SIPIetfProfileContext::IncomingResponse", ProfileId())
         aHandled = ETrue;
         const CSIPResponseElements* response = aTransaction.ResponseElements();
-        TInt responseCode  = KErrGeneral;
+        TUint responseCode = response->StatusCode();
         TBool retry = EFalse;
         if (response)
             {
-                responseCode = response->StatusCode();
-                
                 retry = RetryRegister( &aTransaction,  responseCode);
                 if( !retry )
                 {