diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c index 7416e9efc9c..a40a00da6ed 100644 --- a/src/modules/tmx/tmx_mod.c +++ b/src/modules/tmx/tmx_mod.c @@ -37,6 +37,7 @@ #include "../../core/counters.h" #include "../../core/dset.h" #include "../../core/kemi.h" +#include "../../core/fmsg.h" #include "t_var.h" #include "tmx_pretran.h" @@ -705,6 +706,11 @@ static int ki_t_suspend(sip_msg_t* msg) unsigned int tlabel; tm_cell_t *t = 0; + if(faked_msg_match(msg)) { + LM_ERR("suspending a faked request is not allowed\n"); + return -1; + } + t=_tmx_tmb.t_gett(); if (t==NULL || t==T_UNDEFINED) {