Browse Source

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

(cherry picked from commit 0374a573604dfac337d69f8db38cca0e3ef30300)
Daniel-Constantin Mierla 6 years ago
parent
commit
a909e7d921
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/modules/tm/t_lookup.c

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

@@ -412,7 +412,12 @@ static int matching_3261( struct sip_msg *p_msg, struct cell **trans,
 				/* found an existing cancel for the searched transaction */
 				/* found an existing cancel for the searched transaction */
 				*cancel=1;
 				*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:
 found:
 		prefetch_w(p_cell); /* great chance of modifiying it */
 		prefetch_w(p_cell); /* great chance of modifiying it */
@@ -433,7 +438,8 @@ e2eack_found:
 		*trans=e2e_ack_trans;
 		*trans=e2e_ack_trans;
 		return 2;
 		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;
 	return 0;
 }
 }