Revision: 15453
Author: [email protected]
Date: Mon Nov 22 13:07:34 2010
Log: Update Issue 1873

Fix for scheduling sas expiration timer in wrong place
http://code.google.com/p/mobicents/source/detail?r=15453

Modified:
/trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/session/SipStandardManagerDelegate.java

=======================================
--- /trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/session/SipStandardManagerDelegate.java Wed Nov 17 05:14:51 2010 +++ /trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/session/SipStandardManagerDelegate.java Mon Nov 22 13:07:34 2010
@@ -16,10 +16,7 @@
  */
 package org.mobicents.servlet.sip.core.session;

-import java.util.concurrent.TimeUnit;
-
 import org.apache.log4j.Logger;
-import org.mobicents.servlet.sip.core.timers.SipApplicationSessionTimerTask;
 import org.mobicents.servlet.sip.message.SipFactoryImpl;
 import org.mobicents.servlet.sip.startup.SipContext;

@@ -38,8 +35,7 @@
             throw new IllegalStateException
("could not create a new sip session because there is currently too many active sip sessions");
                }
-               sipSessionCounter++;
-               scheduleExpirationTimer(mobicentsSipApplicationSession);
+               sipSessionCounter++;
return new SipSessionImpl(key, sipFactoryImpl, mobicentsSipApplicationSession);
        }

@@ -53,6 +49,7 @@
                }
                sipApplicationSessionCounter++;
MobicentsSipApplicationSession sipApplicationSession = new SipApplicationSessionImpl(key, sipContext);
+               scheduleExpirationTimer(sipApplicationSession);

                return sipApplicationSession;
        }

Reply via email to