Browse code

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

- GH #2489

Daniel-Constantin Mierla authored on 01/10/2020 08:04:50
Showing 1 changed files
... ...
@@ -1343,7 +1343,7 @@ int tps_db_update_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
1343 1343
 	nr_keys = 0;
1344 1344
 	nr_ucols = 0;
1345 1345
 
1346
-	db_keys[nr_keys]=&td_col_a_uuid;
1346
+	db_keys[nr_keys]=&tt_col_a_uuid;
1347 1347
 	db_ops[nr_keys]=OP_EQ;
1348 1348
 	db_vals[nr_keys].type = DB1_STR;
1349 1349
 	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,
1366 1366
 	}
1367 1367
 
1368 1368
 	if((mode & TPS_DBU_RPLATTRS) && msg->first_line.type==SIP_REPLY) {
1369
-		if(sd->b_tag.len<=0
1370
-				&& msg->first_line.u.reply.statuscode>=180
1369
+		if(msg->first_line.u.reply.statuscode>=180
1371 1370
 				&& msg->first_line.u.reply.statuscode<200) {
1372 1371
 
1373 1372
 			db_ucols[nr_ucols] = &tt_col_y_rr;