Quellcode durchsuchen

tm: debug message when matching a skip method for transaction lookup

(cherry picked from commit 0374a573604dfac337d69f8db38cca0e3ef30300)
(cherry picked from commit a909e7d9213ee071917c785f10d883ea6a06fc39)
(cherry picked from commit 1c9d31aaa9d1c5478762770fddc4bf70d2f8e216)
Daniel-Constantin Mierla vor 6 Jahren
Ursprung
Commit
db3913e6cf
1 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen
  1. 8 2
      src/modules/tm/t_lookup.c

+ 8 - 2
src/modules/tm/t_lookup.c

@@ -411,7 +411,12 @@ static int matching_3261( struct sip_msg *p_msg, struct cell **trans,
 				/* found an existing cancel for the searched transaction */
 				*cancel=1;
 			}
-			if (skip_method & t_msg->REQ_METHOD) continue;
+			if (skip_method & t_msg->REQ_METHOD) {
+				LM_DBG("matched skip method - s:0x%x t:0x%x m:0x%x -"
+						" continue searching\n",
+						skip_method, t_msg->REQ_METHOD, p_msg->REQ_METHOD);
+				continue;
+			}
 		}
 found:
 		prefetch_w(p_cell); /* great chance of modifiying it */
@@ -432,7 +437,8 @@ e2eack_found:
 		*trans=e2e_ack_trans;
 		return 2;
 	}
-	LM_DBG("RFC3261 transaction matching failed\n");
+	LM_DBG("RFC3261 transaction matching failed - via branch [%.*s]\n",
+			via1->branch->value.len, via1->branch->value.s);
 	return 0;
 }