Module: kamailio
Branch: master
Commit: 93c8b40bb08c8e0d1cc4440e5261fc1965cc6a21
URL:
https://github.com/kamailio/kamailio/commit/93c8b40bb08c8e0d1cc4440e5261fc1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-12T12:03:11+02:00
tm: t_reply() skip sending reply if FL_MSG_NOREPLY is set
---
Modified: src/modules/tm/tm.c
---
Diff:
https://github.com/kamailio/kamailio/commit/93c8b40bb08c8e0d1cc4440e5261fc1…
Patch:
https://github.com/kamailio/kamailio/commit/93c8b40bb08c8e0d1cc4440e5261fc1…
---
diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c
index 68df52b5c1..6d8259aae4 100644
--- a/src/modules/tm/tm.c
+++ b/src/modules/tm/tm.c
@@ -1327,6 +1327,10 @@ static int ki_t_reply(sip_msg_t* msg, int code, str* reason)
LM_DBG("ACKs are not replied\n");
return -1;
}
+ if(msg->msg_flags & FL_MSG_NOREPLY) {
+ LM_INFO("message marked with no-reply flag\n");
+ return -2;
+ }
if (t_check( msg , 0 )==-1) return -1;
t=get_t();