Browse Source

missing history entries completed

Jiri Kuthan 22 years ago
parent
commit
d505936f1a

+ 3 - 0
modules/tm/h_table.c

@@ -27,6 +27,9 @@
  * History
  * -------
  * 2003-03-16  removed _TOTAG (jiri)
+ * 2003-03-06  200/INV to-tag list deallocation added;
+ *             setting "kill_reason" moved in here -- it is moved
+ *             from transaction state to a static var(jiri)
  */
 
 #include "defs.h"

+ 1 - 0
modules/tm/h_table.h

@@ -27,6 +27,7 @@
  * History:
  * --------
  * 2003-03-16  removed _TOTAG (jiri)
+ * 2003-03-06  we keep a list of 200/INV to-tags now (jiri)
  * 2003-03-01  kr set through a function now (jiri)
  */
 

+ 4 - 1
modules/tm/t_fwd.c

@@ -28,11 +28,14 @@
 /*
  * History:
  * -------
+ *  2003-03-19  replaced all the mallocs/frees w/ pkg_malloc/pkg_free (andrei)
+ *  2003-03-06  callbacks renamed; "blind UAC" introduced, which makes
+ *              transaction behave as if it was forwarded even if it was
+ *              not -- good for local UAS, like VM (jiri)
  *  2003-03-01  kr set through a function now (jiri)
  *  2003-02-24  s/T_NULL/T_NULL_CELL/ to avoid redefinition conflict w/
  *              nameser_compat.h (andrei)
  *  2003-02-13  proto support added (andrei)
- *  2003-03-19  replaced all the mallocs/frees w/ pkg_malloc/pkg_free (andrei)
  */
 
 #include "defs.h"

+ 1 - 0
modules/tm/t_hooks.h

@@ -27,6 +27,7 @@
  * History:
  * --------
  * 2003-03-16 backwards-compatibility callback names introduced (jiri)
+ * 2003-03-06 old callbacks renamed, new one introduced (jiri)
  */
 
 

+ 21 - 5
modules/tm/t_lookup.c

@@ -51,6 +51,10 @@
  *
  * History:
  * ----------
+ * 2003-03-29  optimization: e2e ACK matching only if callback installed
+ *             (jiri)
+ * 2003-03-06  dialog matching introduced for ACKs -- that's important for 
+ *             INVITE UAS (like INVITE) and 200/ACK proxy matching (jiri)
  * 2003-03-01  kr set through a function now (jiri)
  * 2003-02-28 scratchpad compatibility abandoned (jiri)
  * 2003-02-27  3261 ACK/200 consumption bug removed (jiri)
@@ -1022,12 +1026,24 @@ int t_newtran( struct sip_msg* p_msg )
 
 		/* was it an e2e ACK ? if so, trigger a callback */
 		if (lret==-2) {
-				REF_UNSAFE(t_ack);
-				UNLOCK_HASH(p_msg->hash_index);
-				if (unmatched_totag(t_ack, p_msg)) {
-						callback_event( TMCB_E2EACK_IN, t_ack, p_msg, p_msg->REQ_METHOD );
+				/* no callbacks? complete quickly */
+				if (!callback_array[TMCB_E2EACK_IN]) {
+					UNLOCK_HASH(p_msg->hash_index);
+				} else {
+					REF_UNSAFE(t_ack);
+					UNLOCK_HASH(p_msg->hash_index);
+					/* we don't call from within REPLY_LOCK -- that introduces
+				   	   a race condition; however, it is so unlikely and the
+				   	   impact is so small (callback called multiple times of
+			           multiple ACK/200s received in parallel), that we do not
+				   	    better waste time in locks
+					 */
+					if (unmatched_totag(t_ack, p_msg)) {
+						callback_event( TMCB_E2EACK_IN, t_ack, p_msg, 
+							p_msg->REQ_METHOD );
+					}
+					UNREF(t_ack);
 				}
-				UNREF(t_ack);
 		} else { /* not e2e ACK */
 			UNLOCK_HASH(p_msg->hash_index);
 			/* now, when the transaction state exists, check if

+ 4 - 1
modules/tm/t_reply.c

@@ -28,6 +28,10 @@
  * History:
  * --------
  * 2003-03-16  removed _TOTAG (jiri)
+ * 2003-03-10  fixed new to tag bug/typo (if w/o {})  (andrei)
+ * 2003-03-06  saving of to-tags for ACK/200 matching introduced, 
+ *             voicemail changes accepted, udpated to new callback
+ *             names (jiri)
  * 2003-03-01  kr set through a function now (jiri)
  * 2003-02-28 scratchpad compatibility abandoned (jiri)
  * 2003-02-18  replaced TOTAG_LEN w/ TOTAG_VALUE_LEN (TOTAG_LEN was defined
@@ -35,7 +39,6 @@
  * 2003-02-13  updated to use rb->dst (andrei)
  * 2003-01-27  next baby-step to removing ZT - PRESERVE_ZT (jiri)
  * 2003-01-19  faked lump list created in on_reply handlers
- * 2003-03-10  fixed new to tag bug/typo (if w/o {})  (andrei)
  */
 
 

+ 1 - 0
modules/tm/tm.c

@@ -57,6 +57,7 @@
  *  2003-02-18  added t_forward_nonack_{udp, tcp}, t_relay_to_{udp,tcp},
  *               t_replicate_{udp, tcp} (andrei)
  *  2003-02-19  added t_rely_{udp, tcp} (andrei)
+ *  2003-03-06  voicemail changes accepted (jiri)
  *  2003-03-10  module export interface updated to the new format (andrei)
  *  2003-03-16  flags export parameter added (janakj)
  *  2003-03-19  replaced all mallocs/frees w/ pkg_malloc/pkg_free (andrei)

+ 4 - 0
modules/tm/tm_load.c

@@ -23,6 +23,10 @@
  * You should have received a copy of the GNU General Public License 
  * along with this program; if not, write to the Free Software 
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * History:
+ * --------
+ * 2003-03-06  voicemail changes accepted
  */
 
 #include "defs.h"

+ 6 - 0
modules/tm/tm_load.h

@@ -23,6 +23,12 @@
  * You should have received a copy of the GNU General Public License 
  * along with this program; if not, write to the Free Software 
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ *
+ * History:
+ * --------
+ * 2003-03-06  voicemail changes accepted
+ *
  */
 
 

+ 3 - 1
msg_translator.c

@@ -28,6 +28,9 @@
  *
  * History:
  * --------
+ * 2003-03-18  killed the build_warning snprintf (andrei)
+ * 2003-03-06  totags in outgoing replies bookmarked to enable
+ *             ACK/200 tag matching
  * 2003-03-01  VOICE_MAIL defs removed (jiri)
  * 2003-02-28  scratchpad compatibility abandoned (jiri)
  * 2003-01-20  bug_fix: use of return value of snprintf aligned to C99 (jiri)
@@ -39,7 +42,6 @@
  * 2003-01-27  more rport fixes (make use of new via_param->start)  (andrei)
  * 2003-01-27  next baby-step to removing ZT - PRESERVE_ZT (jiri)
  * 2003-01-29  scratchpad removed (jiri)
- * 2003-03-18  killed the build_warning snprintf (andrei)
  *
  */
 

+ 3 - 0
msg_translator.h

@@ -26,6 +26,9 @@
  *
  * History:
  * --------
+ * 2003-03-06  totags in outgoing replies bookmarked to enable
+ *             ACK/200 tag matching
+ *
  * 2003-03-01 VOICE_MAIL defs removed (jiri)
  */
 

+ 2 - 0
parser/msg_parser.h

@@ -26,6 +26,8 @@
  *
  * History
  * -------
+ * 2003-03-06 enum_request_method changed to begin with 1;
+ *            0 reserved for invalid values; (jiri)
  * 2003-02-28 scratchpad compatibility abandoned (jiri)
  * 2003-01-28 removed scratchpad (jiri)
  */