summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());