Revision: 1cb4d7cdd5e5
Author:   emmartins <[email protected]>
Date:     Wed Jul 23 15:07:56 2014 UTC
Log:      Fixes issue 103

http://code.google.com/p/jain-slee/source/detail?r=1cb4d7cdd5e5&repo=sip

Modified:
/resources/sip11/ra/src/main/java/org/mobicents/slee/resource/sip11/SipResourceAdaptor.java

=======================================
--- /resources/sip11/ra/src/main/java/org/mobicents/slee/resource/sip11/SipResourceAdaptor.java Wed Feb 27 15:11:18 2013 UTC +++ /resources/sip11/ra/src/main/java/org/mobicents/slee/resource/sip11/SipResourceAdaptor.java Wed Jul 23 15:07:56 2014 UTC
@@ -1,25 +1,23 @@
 /*
- * 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 2011-2014, Telestax Inc 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
- * published by the Free Software Foundation; either version 2.1 of
+ * This program is free software: you can redistribute it and/or modify
+ * under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation; either version 3 of
  * the License, or (at your option) any later version.
  *
- * This software is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
  *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ * This file incorporates work covered by the following copyright contributed under the GNU LGPL : Copyright 2007-2011 Red Hat.
  */
-
 package org.mobicents.slee.resource.sip11;

 import gov.nist.javax.sip.ResponseEventExt;
@@ -442,12 +440,12 @@
             d.delete();
         }
     }
-
-       /**
-        *
-        * @param req
-        * @param infoTrace
-        */
+
+    /**
+     *
+     * @param req
+     * @param dw
+     */
        private void processNotCancelRequest(RequestEvent req, DialogWrapper 
dw) {

                // get server tx wrapper
@@ -977,7 +975,7 @@
         */
        public void processTimeout(TimeoutEvent timeoutEvent) {

-               SIPTransaction t = null;
+               final SIPTransaction t;
                if (timeoutEvent.isServerTransaction()) {
                        t = (SIPTransaction) 
timeoutEvent.getServerTransaction();
                }
@@ -999,15 +997,15 @@
                        return;
                }

-               TimeoutEventWrapper tew = null;
+               final TimeoutEventWrapper tew;
                if (timeoutEvent.isServerTransaction()) {
tew = new TimeoutEventWrapper(providerWrapper,(ServerTransaction)tw, timeoutEvent.getTimeout());
                }
                else {
tew = new TimeoutEventWrapper(providerWrapper,(ClientTransaction)tw, timeoutEvent.getTimeout());
                }
-
-               final Dialog d = tw.getWrappedTransaction().getDialog();
+
+        final Dialog d = t.getDialog();
                final DialogWrapper dw = getDialogWrapper(d);
final FireableEventType eventType = eventIdCache.getTransactionTimeoutEventId(
                                eventLookupFacility, dw != null);
@@ -1141,13 +1139,12 @@
     }

     // *************** Event Life cycle
-
-       /**
-        *
-        * @param wrapperActivity
-        * @param transacted
-        * @return
-        */
+
+    /**
+     *
+     * @param wrapperActivity
+     * @return
+     */
        public boolean addActivity(Wrapper wrapperActivity) {

                if (tracer.isFineEnabled()) {

--

--- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to