[sr-dev] git:master:e9be2021: topos: fix condition to match KDMQ method

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 6 08:10:49 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-06-06T08:10:15+02:00

topos: fix condition to match KDMQ method

---

Modified: src/modules/topos/topos_mod.c

---

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

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index 408c964e62..5d3e4aec9c 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -405,7 +405,7 @@ int tps_msg_sent(sr_event_param_t *evp)
 				goto done;
 			}
 			if(get_cseq(&msg)->method.len==4
-					&& strncmp(get_cseq(&msg)->method.s, "KDMQ", 4)) {
+					&& strncmp(get_cseq(&msg)->method.s, "KDMQ", 4)==0) {
 				goto done;
 			}
 		}




More information about the sr-dev mailing list