[sr-dev] git:master:345d6f67: topoh: skip http reply handling
Daniel-Constantin Mierla
miconda at gmail.com
Sun Feb 23 10:00:55 CET 2020
Module: kamailio
Branch: master
Commit: 345d6f67006e4254300209742a2778b925cafaf7
URL: https://github.com/kamailio/kamailio/commit/345d6f67006e4254300209742a2778b925cafaf7
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/345d6f67006e4254300209742a2778b925cafaf7.diff
Patch: https://github.com/kamailio/kamailio/commit/345d6f67006e4254300209742a2778b925cafaf7.patch
---
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;
}
More information about the sr-dev
mailing list