[sr-dev] git:master:3924afe2: topos_redis: execute end dialog function only for BYE request

Daniel-Constantin Mierla miconda at gmail.com
Wed Aug 1 22:57:07 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-08-01T22:55:06+02:00

topos_redis: execute end dialog function only for BYE request

- reported by GH #1608

---

Modified: src/modules/topos_redis/topos_redis_storage.c

---

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

---

diff --git a/src/modules/topos_redis/topos_redis_storage.c b/src/modules/topos_redis/topos_redis_storage.c
index bc810e702b..4ba31f404a 100644
--- a/src/modules/topos_redis/topos_redis_storage.c
+++ b/src/modules/topos_redis/topos_redis_storage.c
@@ -1314,6 +1314,10 @@ int tps_redis_end_dialog(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd)
 	int32_t liflags;
 	unsigned long lval = 0;
 
+	if(md->s_method_id != METHOD_BYE) {
+		return 0;
+	}
+
 	if(sd->a_uuid.len<=0 && sd->b_uuid.len<=0) {
 		LM_INFO("no uuid for this message\n");
 		return -1;




More information about the sr-dev mailing list