realtimenetprots/sipfw/ProfileAgent/IETF_Agent/src/Sipietfprofilecontext.cpp
changeset 39 7cdef8deefa0
parent 34 3c8db403127f
child 45 15965fe54016
equal deleted inserted replaced
35:a858c2cf6a45 39:7cdef8deefa0
   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;
   560         aTransaction==*iClientTx && aRegistration==*iRegistration)
   560         aTransaction==*iClientTx && aRegistration==*iRegistration)
   561         {
   561         {
   562         PROFILE_DEBUG3("SIPIetfProfileContext::IncomingResponse", ProfileId())
   562         PROFILE_DEBUG3("SIPIetfProfileContext::IncomingResponse", ProfileId())
   563         aHandled = ETrue;
   563         aHandled = ETrue;
   564         const CSIPResponseElements* response = aTransaction.ResponseElements();
   564         const CSIPResponseElements* response = aTransaction.ResponseElements();
   565         TUint responseCode = response->StatusCode();
   565         TInt responseCode  = KErrGeneral;
   566         TBool retry = EFalse;
   566         TBool retry = EFalse;
   567         if (response)
   567         if (response)
   568             {
   568             {
       
   569                 responseCode = response->StatusCode();
       
   570                 
   569                 retry = RetryRegister( &aTransaction,  responseCode);
   571                 retry = RetryRegister( &aTransaction,  responseCode);
   570                 if( !retry )
   572                 if( !retry )
   571                 {
   573                 {
   572                     if (responseCode >= K300MultipleChoices)
   574                     if (responseCode >= K300MultipleChoices)
   573                     {
   575                     {