Module: kamailio
Branch: master
Commit: 94e8988769662a5ae68e30847eef133d50ec5431
URL:
https://github.com/kamailio/kamailio/commit/94e8988769662a5ae68e30847eef133…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-26T13:02:11+02:00
topos: load associated early dialog transaction using also uuid
---
Modified: src/modules/topos/tps_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/94e8988769662a5ae68e30847eef133…
Patch:
https://github.com/kamailio/kamailio/commit/94e8988769662a5ae68e30847eef133…
---
diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index 25275ab272..21cb59c517 100644
--- a/src/modules/topos/tps_storage.c
+++ b/src/modules/topos/tps_storage.c
@@ -1144,6 +1144,24 @@ int tps_db_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t
*sd,
db_vals[nr_keys].nul = 0;
db_vals[nr_keys].val.str_val = bInviteDlg ? sinv : ssub;
nr_keys++;
+
+ if(md->a_uuid.len>0) {
+ if(md->a_uuid.s[0]=='a') {
+ db_keys[nr_keys]=&tt_col_a_uuid;
+ db_vals[nr_keys].val.str_val = TPS_STRZ(md->a_uuid);
+ } else if(md->a_uuid.s[0]=='b') {
+ db_keys[nr_keys]=&tt_col_b_uuid;
+ db_vals[nr_keys].val.str_val = TPS_STRZ(md->a_uuid);
+ }
+ } else if(md->b_uuid.len>0) {
+ if(md->b_uuid.s[0]=='a') {
+ db_keys[nr_keys]=&tt_col_a_uuid;
+ db_vals[nr_keys].val.str_val = TPS_STRZ(md->b_uuid);
+ } else if(md->b_uuid.s[0]=='b') {
+ db_keys[nr_keys]=&tt_col_b_uuid;
+ db_vals[nr_keys].val.str_val = TPS_STRZ(md->b_uuid);
+ }
+ }
}
if(msg->first_line.type==SIP_REQUEST && md->x_context.len>0) {