779 // CSIPIMSProfileContext::ShouldRetryRegistration |
779 // CSIPIMSProfileContext::ShouldRetryRegistration |
780 // ----------------------------------------------------------------------------- |
780 // ----------------------------------------------------------------------------- |
781 // |
781 // |
782 TBool CSIPIMSProfileContext::ShouldRetryRegistration( TInt aError ) |
782 TBool CSIPIMSProfileContext::ShouldRetryRegistration( TInt aError ) |
783 { |
783 { |
784 return (iProfile && |
784 return (aError == K503ServiceUnavailable || |
785 AgentObserver().ProceedRegistration(*iProfile, aError) && |
|
786 (aError == K503ServiceUnavailable || |
|
787 aError == K408TimeOut || |
785 aError == K408TimeOut || |
788 aError == K480TemporarilyUnavailable || |
786 aError == K480TemporarilyUnavailable || |
789 aError == K500ServerInternalError || |
787 aError == K500ServerInternalError || |
790 aError == K504ServerTimeOut || |
788 aError == K504ServerTimeOut || |
791 aError == KErrTimedOut || |
789 aError == KErrTimedOut || |
792 ((aError == KErrSIPResolvingFailure || |
790 ((aError == KErrSIPResolvingFailure || |
793 aError == KErrSIPTransportFailure || |
791 aError == KErrSIPTransportFailure || |
794 aError == KErrSIPICMPFailure || |
792 aError == KErrSIPICMPFailure || |
795 aError == KErrSIPOutboundProxyNotResponding ) && |
793 aError == KErrSIPOutboundProxyNotResponding ) && |
796 iConnection.State() != CSIPConnection::ESuspended))); |
794 iConnection.State() != CSIPConnection::ESuspended)); |
797 } |
795 } |
798 |
796 |
799 // ----------------------------------------------------------------------------- |
797 // ----------------------------------------------------------------------------- |
800 // CSIPIMSProfileContext::RetryAfterTimer |
798 // CSIPIMSProfileContext::RetryAfterTimer |
801 // ----------------------------------------------------------------------------- |
799 // ----------------------------------------------------------------------------- |