summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2011-03-30 18:28:53 +0800
committerJean-Baptiste Queru <jbq@google.com>2011-04-07 12:29:33 -0700
commita58e4068f86c6ca3f9771d4ec8b2665d070a170e (patch)
tree720eabd5fd655f22f8ed28f38879585b477afb89
parent618ef6b2f5a2d3c29e4a76faa5abc5ebd5fa6fe3 (diff)
downloadnist-sip-a58e4068f86c6ca3f9771d4ec8b2665d070a170e.tar.gz
bug:4185114 Change-Id: I7832ffaa4383a84970293bcb921e3fb1fa1ccec4
-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());