Module: kamailio
Branch: master
Commit: 54fe6aa05a266bfbf0cffedde89134ba534c8d1b
URL:
https://github.com/kamailio/kamailio/commit/54fe6aa05a266bfbf0cffedde89134b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-22T21:46:29+02:00
topos_redis: set attributes always for provisional replies
---
Modified: src/modules/topos_redis/topos_redis_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/54fe6aa05a266bfbf0cffedde89134b…
Patch:
https://github.com/kamailio/kamailio/commit/54fe6aa05a266bfbf0cffedde89134b…
---
diff --git a/src/modules/topos_redis/topos_redis_storage.c
b/src/modules/topos_redis/topos_redis_storage.c
index 93f02da0fd..5f0fda701e 100644
--- a/src/modules/topos_redis/topos_redis_storage.c
+++ b/src/modules/topos_redis/topos_redis_storage.c
@@ -1171,15 +1171,14 @@ int tps_redis_update_branch(sip_msg_t *msg, tps_data_t *md,
tps_data_t *sd,
argc++;
if(mode & TPS_DBU_CONTACT) {
- TPS_REDIS_SET_ARGS(&md->b_contact, argc, &tt_key_b_contact,
+ TPS_REDIS_SET_ARGS(&md->a_contact, argc, &tt_key_a_contact,
argv, argvlen);
TPS_REDIS_SET_ARGS(&md->b_contact, argc, &tt_key_b_contact,
argv, argvlen);
}
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) {
TPS_REDIS_SET_ARGS(&md->b_rr, argc, &tt_key_y_rr, argv, argvlen);