[sr-dev] git:5.3:83357250: topoh: skip http reply handling

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 25 08:42:20 CET 2020


Module: kamailio
Branch: 5.3
Commit: 833572502f016f6be83eaa7f7317ac7e0f154039
URL: https://github.com/kamailio/kamailio/commit/833572502f016f6be83eaa7f7317ac7e0f154039

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-25T08:39:11+01:00

topoh: skip http reply handling

(cherry picked from commit 345d6f67006e4254300209742a2778b925cafaf7)

---

Modified: src/modules/topoh/topoh_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/833572502f016f6be83eaa7f7317ac7e0f154039.diff
Patch: https://github.com/kamailio/kamailio/commit/833572502f016f6be83eaa7f7317ac7e0f154039.patch

---

diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c
index 0eb5345598..b4c3649f3b 100644
--- a/src/modules/topoh/topoh_mod.c
+++ b/src/modules/topoh/topoh_mod.c
@@ -249,8 +249,14 @@ int th_prepare_msg(sip_msg_t *msg)
 			LM_DBG("non sip request message\n");
 			return 1;
 		}
-	} else if(msg->first_line.type!=SIP_REPLY) {
-		LM_DBG("non sip message\n");
+	} else if(msg->first_line.type==SIP_REPLY) {
+		if(!IS_SIP_REPLY(msg))
+		{
+			LM_DBG("non sip reply message\n");
+			return 1;
+		}
+	} else {
+		LM_DBG("unknown sip message type %d\n", msg->first_line.type);
 		return 1;
 	}
 




More information about the sr-dev mailing list