realtimenetprots/sipfw/ProfileAgent/IETF_Agent/src/Sipietfprofilecontext.cpp
changeset 33 b8a7e07b2677
parent 17 bfe1f539b721
child 37 0295359a7673
equal deleted inserted replaced
30:d7640adb246b 33:b8a7e07b2677
   440 	    AgentObserver().ProceedRegistration(*iProfile, aError) &&
   440 	    AgentObserver().ProceedRegistration(*iProfile, aError) &&
   441 	    (CurrentState() == MSIPProfileContext::ERegistrationInProgress ||
   441 	    (CurrentState() == MSIPProfileContext::ERegistrationInProgress ||
   442 	     CurrentState() == MSIPProfileContext::ERegistered) &&
   442 	     CurrentState() == MSIPProfileContext::ERegistered) &&
   443 		(aError == K408TimeOut ||
   443 		(aError == K408TimeOut ||
   444 		 aError == K500ServerInternalError ||
   444 		 aError == K500ServerInternalError ||
   445 		 aError == KErrSIPOutboundProxyNotResponding || 
   445 		 aError == KErrTimedOut || 
       
   446 		 (( aError == KErrSIPOutboundProxyNotResponding || 
   446 		 aError == KErrSIPResolvingFailure || 
   447 		 aError == KErrSIPResolvingFailure || 
   447 		 aError == KErrTimedOut || 
       
   448 		 aError == KErrSIPTransportFailure ||
   448 		 aError == KErrSIPTransportFailure ||
   449 		 aError == KErrSIPICMPFailure  && 
   449 		 aError == KErrSIPICMPFailure ) && 
   450 		 iConnection.State() != CSIPConnection::ESuspended))		
   450 		 iConnection.State() != CSIPConnection::ESuspended)))		
   451 	    {
   451 	    {
   452 		if ( iRetryCounterSum + 1 < KMaxRetryForOneAddress &&
   452 		if ( iRetryCounterSum + 1 < KMaxRetryForOneAddress &&
   453 		     iRetryCounter < KMaxRetryForOneAddress )
   453 		     iRetryCounter < KMaxRetryForOneAddress )
   454 			{
   454 			{
   455 			retry = ETrue;
   455 			retry = ETrue;
   492 TBool CSIPIetfProfileContext::ShouldRetryRegistration( TInt aError )
   492 TBool CSIPIetfProfileContext::ShouldRetryRegistration( TInt aError )
   493 	{
   493 	{
   494 	return (aError == K503ServiceUnavailable || 
   494 	return (aError == K503ServiceUnavailable || 
   495 	        aError == K408TimeOut ||
   495 	        aError == K408TimeOut ||
   496 	        aError == K500ServerInternalError ||
   496 	        aError == K500ServerInternalError ||
   497 		    aError == KErrSIPOutboundProxyNotResponding || 
       
   498 		    aError == KErrTimedOut ||
   497 		    aError == KErrTimedOut ||
   499 		    ((aError == KErrSIPResolvingFailure || 
   498 		    ((aError == KErrSIPResolvingFailure || 
   500 		      aError == KErrSIPTransportFailure ||
   499 		      aError == KErrSIPTransportFailure ||
   501 		      aError == KErrSIPICMPFailure) && 
   500 		      aError == KErrSIPICMPFailure ||
       
   501 		      aError == KErrSIPOutboundProxyNotResponding ) && 
   502 			 iConnection.State() != CSIPConnection::ESuspended));
   502 			 iConnection.State() != CSIPConnection::ESuspended));
   503 	}
   503 	}
   504 
   504 
   505 // -----------------------------------------------------------------------------
   505 // -----------------------------------------------------------------------------
   506 // CSIPIetfProfileContext::InitializeRetryTimerValue
   506 // CSIPIetfProfileContext::InitializeRetryTimerValue