Skip to content

Commit

Permalink
tm: info log message if attempting to create transaction for faked re…
Browse files Browse the repository at this point in the history
…quest
  • Loading branch information
miconda committed Nov 20, 2018
1 parent 24c92c4 commit 4dd53ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/tm/t_lookup.c
Expand Up @@ -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"
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 4dd53ab

Please sign in to comment.