[sr-dev] git:5.3:ec02a63f: topos: 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: ec02a63f63780d538b5f766d720df1208c2b98af
URL: https://github.com/kamailio/kamailio/commit/ec02a63f63780d538b5f766d720df1208c2b98af

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

topos: skip http reply handling

(cherry picked from commit fad795648f8cbf12cc099dea18092ff7beee9c75)

---

Modified: src/modules/topos/topos_mod.c

---

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

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index fa70d06bb9..d698b90cc1 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -269,8 +269,13 @@ int tps_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