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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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;
        }
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to