Jiri Kuthan %!s(int64=24) %!d(string=hai) anos
pai
achega
48ee625749
Modificáronse 2 ficheiros con 7 adicións e 2 borrados
  1. 6 2
      modules/tm/t_funcs.c
  2. 1 0
      t_debug.cfg

+ 6 - 2
modules/tm/t_funcs.c

@@ -1152,9 +1152,13 @@ int add_branch_label( struct cell *trans, struct sip_msg *p_msg, int branch )
 		  MAX_BRANCH_PARAM_LEN - p_msg->add_to_branch_len,
 		 ".%x.%x.%x",
 		 trans->hash_index, trans->label, branch );
-	DBG("DEBUG: branch created now: %*s (%d)\n", n, p_msg->add_to_branch_s+p_msg->add_to_branch_len );
 	if (n==-1) {
 		LOG(L_ERR, "ERROR: add_branch_label: too small branch buffer\n");
 		return -1;
-	} else return 0;
+	} else {
+		p_msg->add_to_branch_len += n;
+		DBG("DEBUG: branch label created now: %*s (%d)\n", p_msg->add_to_branch_len, 
+			p_msg->add_to_branch_s );
+		return 0;
+	}
 }

+ 1 - 0
t_debug.cfg

@@ -6,6 +6,7 @@ fork=no          # (cmd. line: -D)
 log_stderror=yes # (cmd line: -E)
 port=5080
 listen=127.0.0.1
+loop_checks=1
 # for more info: sip_router -h
 
 #modules