Browse Source

tm: info log message if attempting to create transaction for faked request

Daniel-Constantin Mierla 6 years ago
parent
commit
4dd53abf13
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/modules/tm/t_lookup.c

+ 5 - 0
src/modules/tm/t_lookup.c

@@ -47,6 +47,7 @@
 #include "../../core/parser/parser_f.h"
 #include "../../core/parser/parse_from.h"
 #include "../../core/ut.h"
+#include "../../core/fmsg.h"
 #include "../../core/timer.h"
 #include "../../core/timer_ticks.h"
 #include "../../core/hash_func.h"
@@ -1319,6 +1320,10 @@ int t_newtran( struct sip_msg* p_msg )
 	LM_DBG("msg id=%d , global msg id=%d ,"
 			" T on entrance=%p\n",p_msg->id,global_msg_id,T);
 
+	if(faked_msg_match(p_msg)) {
+		LM_INFO("attempt to create transaction for a faked request"
+				" - try to avoid it\n");
+	}
 	if ( T && T!=T_UNDEFINED  ) {
 		/* ERROR message moved to w_t_newtran */
 		LM_DBG("transaction already in process %p\n", T );