[sr-dev] git:master:fad79564: topos: skip http reply handling

Daniel-Constantin Mierla miconda at gmail.com
Sun Feb 23 10:00:54 CET 2020


Module: kamailio
Branch: master
Commit: fad795648f8cbf12cc099dea18092ff7beee9c75
URL: https://github.com/kamailio/kamailio/commit/fad795648f8cbf12cc099dea18092ff7beee9c75

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-22T10:55:20+01:00

topos: skip http reply handling

---

Modified: src/modules/topos/topos_mod.c

---

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

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index 22f2850d43..24f1216901 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