summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2011-04-07 12:31:02 -0700
committerJean-Baptiste Queru <jbq@google.com>2011-04-07 12:31:12 -0700
commit7a8671bc57b163ae8950a1876a4707c33790904b (patch)
tree720eabd5fd655f22f8ed28f38879585b477afb89
parent4794d8f3a9318e063cd08501ddf66fa767af0c19 (diff)
parenta58e4068f86c6ca3f9771d4ec8b2665d070a170e (diff)
downloadnist-sip-7a8671bc57b163ae8950a1876a4707c33790904b.tar.gz
Change-Id: Ic33eb4a67fdf638f2ba192d60b6a8cf6f9c72be7
-rw-r--r--java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java b/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
index aa29616..4dc39ef 100644
--- a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
+++ b/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
@@ -212,7 +212,8 @@ public class AuthenticationHelperImpl implements AuthenticationHelper {
Hop hop = ((SIPClientTransaction) challengedTransaction).getNextHop();
SipURI sipUri = (SipURI) reoriginatedRequest.getRequestURI();
// BEGIN android-added
- if ( !hop.getHost().equalsIgnoreCase(sipUri.getHost()) )
+ if ( !hop.getHost().equalsIgnoreCase(sipUri.getHost())
+ && !hop.equals(sipStack.getRouter(challengedRequest).getOutboundProxy()) )
// END android-added
sipUri.setMAddrParam(hop.getHost());
if ( hop.getPort() != -1 ) sipUri.setPort(hop.getPort());