Browse code

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

Daniel-Constantin Mierla authored on 10/02/2019 15:16:29
Showing 1 changed files
... ...
@@ -412,7 +412,12 @@ static int matching_3261( struct sip_msg *p_msg, struct cell **trans,
412 412
 				/* found an existing cancel for the searched transaction */
413 413
 				*cancel=1;
414 414
 			}
415
-			if (skip_method & t_msg->REQ_METHOD) continue;
415
+			if (skip_method & t_msg->REQ_METHOD) {
416
+				LM_DBG("matched skip method - s:0x%x t:0x%x m:0x%x -"
417
+						" continue searching\n",
418
+						skip_method, t_msg->REQ_METHOD, p_msg->REQ_METHOD);
419
+				continue;
420
+			}
416 421
 		}
417 422
 found:
418 423
 		prefetch_w(p_cell); /* great chance of modifiying it */
... ...
@@ -433,7 +438,8 @@ e2eack_found:
433 433
 		*trans=e2e_ack_trans;
434 434
 		return 2;
435 435
 	}
436
-	LM_DBG("RFC3261 transaction matching failed\n");
436
+	LM_DBG("RFC3261 transaction matching failed - via branch [%.*s]\n",
437
+			via1->branch->value.len, via1->branch->value.s);
437 438
 	return 0;
438 439
 }
439 440