Revision: b9041a3ea0bf
Author:   Jean Deruelle <[email protected]>
Date:     Sat Dec  8 14:44:09 2012
Log:      Update Issue 181

Committing Fix for tomcat 6 as well

http://code.google.com/p/sipservlets/source/detail?r=b9041a3ea0bf

Modified:
/containers/sip-servlets-catalina-7/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java /containers/sip-servlets-catalina/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java

=======================================
--- /containers/sip-servlets-catalina-7/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java Sat Dec 8 13:56:44 2012 +++ /containers/sip-servlets-catalina-7/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java Sat Dec 8 14:44:09 2012
@@ -1,8 +1,6 @@
 /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * TeleStax, Open Source Cloud Communications.
+ * Copyright 2012 and individual contributors by the @authors tag.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
=======================================
--- /containers/sip-servlets-catalina/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java Mon Sep 10 14:01:24 2012 +++ /containers/sip-servlets-catalina/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java Sat Dec 8 14:44:09 2012
@@ -1,8 +1,6 @@
 /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * TeleStax, Open Source Cloud Communications.
+ * Copyright 2012 and individual contributors by the @authors tag.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
@@ -71,6 +69,7 @@
 import org.mobicents.servlet.sip.core.ExtendedListeningPoint;
 import org.mobicents.servlet.sip.core.MobicentsExtendedListeningPoint;
 import org.mobicents.servlet.sip.core.SipApplicationDispatcher;
+import org.mobicents.servlet.sip.core.message.OutboundProxy;
 import org.mobicents.servlet.sip.message.DefaultSipServletMessageFactory;
 import org.mobicents.servlet.sip.startup.StaticServiceHolder;

@@ -113,7 +112,7 @@
        private int backToNormalSipMessageQueueSize = 1300;
        protected int memoryThreshold = 95;
        private int backToNormalMemoryThreshold = 90;
-       protected String outboundProxy;
+       protected OutboundProxy outboundProxy;
        protected long congestionControlCheckingInterval = 30000;
        private int canceledTimerTasksPurgePeriod = 0;
        // base timer interval for jain sip tx
@@ -884,13 +883,20 @@
        }


-       public String getOutboundProxy() {
+       public OutboundProxy getOutboundProxy() {
                return outboundProxy;
        }


        public void setOutboundProxy(String outboundProxy) {
-               this.outboundProxy = outboundProxy;
+               if(outboundProxy != null) {
+                       this.outboundProxy =  new OutboundProxy(outboundProxy);
+               } else {
+                       this.outboundProxy = null;
+               }
+               if(logger.isDebugEnabled()) {
+                       logger.debug("Outbound Proxy : " + outboundProxy);
+               }
        }

        public int getDispatcherThreadPoolSize() {

Reply via email to