Browse code

topos_redis: set attributes always for provisional replies

Daniel-Constantin Mierla authored on 22/04/2021 19:46:29
Showing 1 changed files
... ...
@@ -1171,15 +1171,14 @@ int tps_redis_update_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
1171 1171
 	argc++;
1172 1172
 
1173 1173
 	if(mode & TPS_DBU_CONTACT) {
1174
-		TPS_REDIS_SET_ARGS(&md->b_contact, argc, &tt_key_b_contact,
1174
+		TPS_REDIS_SET_ARGS(&md->a_contact, argc, &tt_key_a_contact,
1175 1175
 				argv, argvlen);
1176 1176
 		TPS_REDIS_SET_ARGS(&md->b_contact, argc, &tt_key_b_contact,
1177 1177
 				argv, argvlen);
1178 1178
 	}
1179 1179
 
1180 1180
 	if((mode & TPS_DBU_RPLATTRS) && msg->first_line.type==SIP_REPLY) {
1181
-		if(sd->b_tag.len<=0
1182
-				&& msg->first_line.u.reply.statuscode>=180
1181
+		if(msg->first_line.u.reply.statuscode>=180
1183 1182
 				&& msg->first_line.u.reply.statuscode<200) {
1184 1183
 
1185 1184
 			TPS_REDIS_SET_ARGS(&md->b_rr, argc, &tt_key_y_rr, argv, argvlen);