Module: kamailio
Branch: master
Commit: 345d6f67006e4254300209742a2778b925cafaf7
URL:
https://github.com/kamailio/kamailio/commit/345d6f67006e4254300209742a2778b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-02-22T11:18:06+01:00
topoh: skip http reply handling
---
Modified: src/modules/topoh/topoh_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/345d6f67006e4254300209742a2778b…
Patch:
https://github.com/kamailio/kamailio/commit/345d6f67006e4254300209742a2778b…
---
diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c
index fb5d045910..62606fdced 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;
}