diff options
author | Chung-yih Wang <cywang@google.com> | 2011-03-30 18:28:53 +0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2011-04-07 12:29:33 -0700 |
commit | a58e4068f86c6ca3f9771d4ec8b2665d070a170e (patch) | |
tree | 720eabd5fd655f22f8ed28f38879585b477afb89 | |
parent | 618ef6b2f5a2d3c29e4a76faa5abc5ebd5fa6fe3 (diff) | |
download | nist-sip-a58e4068f86c6ca3f9771d4ec8b2665d070a170e.tar.gz |
Fix the maddr issue for proxy authentication.android-sdk-2.3.4_r1android-cts-2.3_r5android-cts-2.3_r4android-cts-2.3_r3android-cts-2.3_r12android-cts-2.3_r11android-cts-2.3_r10android-2.3.7_r1android-2.3.6_r1android-2.3.6_r0.9android-2.3.5_r1android-2.3.4_r1android-2.3.4_r0.9gingerbread-releasegingerbread-mr4-releasegingerbread
bug:4185114
Change-Id: I7832ffaa4383a84970293bcb921e3fb1fa1ccec4
-rw-r--r-- | java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java | 3 |
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()); |