diff options
Diffstat (limited to 'java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java')
-rw-r--r-- | java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java b/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java index c15b569..aa29616 100644 --- a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java +++ b/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java @@ -211,6 +211,9 @@ public class AuthenticationHelperImpl implements AuthenticationHelper { if ( challengedRequest.getRouteHeaders() == null ) { Hop hop = ((SIPClientTransaction) challengedTransaction).getNextHop(); SipURI sipUri = (SipURI) reoriginatedRequest.getRequestURI(); + // BEGIN android-added + if ( !hop.getHost().equalsIgnoreCase(sipUri.getHost()) ) + // END android-added sipUri.setMAddrParam(hop.getHost()); if ( hop.getPort() != -1 ) sipUri.setPort(hop.getPort()); } |