Skip to content

Commit

Permalink
topos: update to-tag and rr on reply even to-tag is already set
Browse files Browse the repository at this point in the history
- GH #2489

(cherry picked from commit acd7f6f)
  • Loading branch information
miconda authored and henningw committed Oct 1, 2020
1 parent 50b6e42 commit 2e4fce4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/topos/tps_storage.c
Expand Up @@ -1226,7 +1226,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;
Expand All @@ -1249,8 +1249,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;
Expand Down

0 comments on commit 2e4fce4

Please sign in to comment.