浏览代码

*** empty log message ***

Bogdan-Andrei Iancu 24 年之前
父节点
当前提交
26d8e91651
共有 3 个文件被更改,包括 31 次插入5 次删除
  1. 20 2
      modules/tm/sip_msg.c
  2. 10 2
      modules/tm/sip_msg.h
  3. 1 1
      modules/tm/tm.c

+ 20 - 2
modules/tm/sip_msg.c

@@ -9,7 +9,7 @@
 
 
 
-struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg )
+struct sip_msg* sip_msg_cloner_1( struct sip_msg *org_msg )
 {
     struct sip_msg   *new_msg=0;
     struct hdr_field  *header, *last_hdr, *new_hdr;
@@ -441,7 +441,7 @@ void sh_free_hdr_field_lst(struct hdr_field* hf)
 
 
 /*only the content*/
-void sip_msg_free(struct sip_msg* msg)
+void sip_msg_free_1(struct sip_msg* msg)
 {
    if (!msg) return;
 
@@ -464,3 +464,21 @@ void sip_msg_free(struct sip_msg* msg)
    sh_free(msg);
    DBG("DEBUG: sip_msg_free : done\n");
 }
+
+
+/******************************* New fuctions ************************************/
+
+
+struct sip_msg*  sip_msg_cloner_2( struct sip_msg *org_msg )
+{
+}
+
+
+
+
+
+
+
+
+
+

+ 10 - 2
modules/tm/sip_msg.h

@@ -10,9 +10,17 @@
 
 #include "sh_malloc.h"
 
+#define sip_msg_cloner(p_msg) \
+    sip_msg_cloner_1(p_msg)
 
-struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg );
-void                     sip_msg_free( struct sip_msg *org_msg );
+#define sip_msg_free(p_msg) \
+    sip_msg_free_1(p_msg)
+
+
+struct sip_msg*  sip_msg_cloner_1( struct sip_msg *org_msg );
+struct sip_msg*  sip_msg_cloner_2( struct sip_msg *org_msg );
+void                     sip_msg_free_1( struct sip_msg *org_msg );
+void                     sip_msg_free_2( struct sip_msg *org_msg );
 
 char*   translate_pointer( char* new_buf , char *org_buf , char* p);
 struct via_body* via_body_cloner( char* new_buf , char *org_buf , struct via_body *org_via);

+ 1 - 1
modules/tm/tm.c

@@ -44,7 +44,7 @@ static struct module_exports nm_exports= {
 			},
 	(cmd_function[]){
 					t_add_transaction,
-					t_check,
+					w_t_check,
 					w_t_forward,
 					w_t_forward_def,
 					t_forward_uri,