From 1e0f37693341071f316852c8e05a08deef2b7fc4 Mon Sep 17 00:00:00 2001 From: Chia-chi Yeh Date: Wed, 15 Dec 2010 15:34:35 +0800 Subject: Only add maddr to the uri when it is different from the host. Bug: 3284110 Change-Id: Ib167dab4f37f799f497c787d1bc861539fd900c7 --- java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/gov/nist/javax/sip') 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()); } -- cgit v1.2.3