[sr-dev] git:master:acd7f6f1: topos: update to-tag and rr on reply even to-tag is already set

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 1 10:06:24 CEST 2020


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-10-01T10:04:50+02:00

topos: update to-tag and rr on reply even to-tag is already set

- GH #2489

---

Modified: src/modules/topos/tps_storage.c

---

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

---

diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index ae7a4ec2c1..b506a94b97 100644
--- a/src/modules/topos/tps_storage.c
+++ b/src/modules/topos/tps_storage.c
@@ -1343,7 +1343,7 @@ int tps_db_update_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
 	nr_keys = 0;
 	nr_ucols = 0;
 
-	db_keys[nr_keys]=&td_col_a_uuid;
+	db_keys[nr_keys]=&tt_col_a_uuid;
 	db_ops[nr_keys]=OP_EQ;
 	db_vals[nr_keys].type = DB1_STR;
 	db_vals[nr_keys].nul = 0;
@@ -1366,8 +1366,7 @@ int tps_db_update_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
 	}
 
 	if((mode & TPS_DBU_RPLATTRS) && msg->first_line.type==SIP_REPLY) {
-		if(sd->b_tag.len<=0
-				&& msg->first_line.u.reply.statuscode>=180
+		if(msg->first_line.u.reply.statuscode>=180
 				&& msg->first_line.u.reply.statuscode<200) {
 
 			db_ucols[nr_ucols] = &tt_col_y_rr;




More information about the sr-dev mailing list