Module: kamailio
Branch: master
Commit: 92c376dbeb6ee515a80537c91014972ada4a5f34
URL:
https://github.com/kamailio/kamailio/commit/92c376dbeb6ee515a80537c91014972…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-23T13:03:15+02:00
tm: t_suspend() skip suspending if a final response was sent out for transaction already
---
Modified: modules/tm/t_suspend.c
---
Diff:
https://github.com/kamailio/kamailio/commit/92c376dbeb6ee515a80537c91014972…
Patch:
https://github.com/kamailio/kamailio/commit/92c376dbeb6ee515a80537c91014972…
---
diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c
index e657959..dc783c9 100644
--- a/modules/tm/t_suspend.c
+++ b/modules/tm/t_suspend.c
@@ -74,6 +74,11 @@ int t_suspend(struct sip_msg *msg,
ser_error = E_CANCELED;
return 1;
}
+ if (t->uas.status >= 200) {
+ LM_DBG("trasaction sent out a final response already - %d\n",
+ t->uas.status);
+ return -3;
+ }
if (msg->first_line.type != SIP_REPLY) {
/* send a 100 Trying reply, because the INVITE processing