瀏覽代碼

minor stuff

Bogdan-Andrei Iancu 24 年之前
父節點
當前提交
68e7f3c658
共有 3 個文件被更改,包括 6 次插入1 次删除
  1. 1 1
      modules/tm/h_table.h
  2. 4 0
      modules/tm/t_funcs.c
  3. 1 0
      t_debug.cfg

+ 1 - 1
modules/tm/h_table.h

@@ -137,7 +137,7 @@ struct s_table
 struct s_table* init_hash_table();
 void                  free_hash_table( struct s_table* hash_table );
 
-void                free_cell( struct cell* dead_cell );
+void             free_cell( struct cell* dead_cell );
 struct cell*  build_cell( struct sip_msg* p_msg );
 
 void remove_from_hash_table( struct s_table *hash_table,  struct cell * p_cell );

+ 4 - 0
modules/tm/t_funcs.c

@@ -90,6 +90,10 @@ int t_add_transaction( struct sip_msg* p_msg, char* foo, char* bar )
    new_cell = build_cell( p_msg ) ;
    if  ( !new_cell )
       return -1;
+   /*init the links with the canceled / canceler transaction */
+   new_cell->T_canceled  = T_UNDEFINED;
+   new_cell->T_canceler  = T_UNDEFINED;
+   /*insert the transaction into hash table*/
    insert_into_hash_table( hash_table , new_cell );
    DBG("DEBUG: t_add_transaction: new transaction inserted, hash: %d\n", new_cell->hash_index );
 

+ 1 - 0
t_debug.cfg

@@ -3,6 +3,7 @@ check_via=yes     # (cmd. line: -v)
 dns=on           # (cmd. line: -r)
 rev_dns=yes      # (cmd. line: -R)
 fork=no          # (cmd. line: -D)
+#children=5
 log_stderror=yes # (cmd line: -E)
 #port=5080
 #listen=192.168.99.100