Revision: 17297
Author: [email protected]
Date: Fri Mar 11 06:06:29 2011
Log: Update Issue 2346

using a different way to remove the route header, the first one keep the route header with nothing in it...
Adding non regression checks for that as well
You can update jain-sip-ext or rebuild it from trunk it should work now.
http://code.google.com/p/mobicents/source/detail?r=17297

Modified:
/trunk/servers/jain-sip-ext/src/main/java/org/mobicents/ext/javax/sip/dns/DNSAwareRouter.java

=======================================
--- /trunk/servers/jain-sip-ext/src/main/java/org/mobicents/ext/javax/sip/dns/DNSAwareRouter.java Thu Mar 10 09:40:12 2011 +++ /trunk/servers/jain-sip-ext/src/main/java/org/mobicents/ext/javax/sip/dns/DNSAwareRouter.java Fri Mar 11 06:06:29 2011
@@ -26,6 +26,7 @@
 import javax.sip.address.Hop;
 import javax.sip.address.SipURI;
 import javax.sip.address.URI;
+import javax.sip.header.RouteHeader;
 import javax.sip.message.Request;

 import gov.nist.core.CommonLogger;
@@ -95,8 +96,8 @@
                 SipURI sipUri = (SipURI) uri;
                 if(sipUri.getParameter(DNS_ROUTE) != null) {
                        if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG))
- logger.logDebug("Removing Route added by container to conform to RFC 3263");
-                       routes.removeFirst();
+ logger.logDebug("Removing Route added by container to conform to RFC 3263 " + route);
+                       sipRequest.removeFirst(RouteHeader.NAME);
                 }
                 if (!sipUri.hasLrParam()) {

Reply via email to