Module: kamailio
Branch: master
Commit: 4dd53abf13f9a98272af625f2a6591669730b374
URL:
https://github.com/kamailio/kamailio/commit/4dd53abf13f9a98272af625f2a65916…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-20T12:48:48+01:00
tm: info log message if attempting to create transaction for faked request
---
Modified: src/modules/tm/t_lookup.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4dd53abf13f9a98272af625f2a65916…
Patch:
https://github.com/kamailio/kamailio/commit/4dd53abf13f9a98272af625f2a65916…
---
diff --git a/src/modules/tm/t_lookup.c b/src/modules/tm/t_lookup.c
index dde02343cb..19f7979ee8 100644
--- a/src/modules/tm/t_lookup.c
+++ b/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 );