[sr-dev] git:master:94e89887: topos: load associated early dialog transaction using also uuid

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 26 13:04:44 CEST 2021


Module: kamailio
Branch: master
Commit: 94e8988769662a5ae68e30847eef133d50ec5431
URL: https://github.com/kamailio/kamailio/commit/94e8988769662a5ae68e30847eef133d50ec5431

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/94e8988769662a5ae68e30847eef133d50ec5431.diff
Patch: https://github.com/kamailio/kamailio/commit/94e8988769662a5ae68e30847eef133d50ec5431.patch

---

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) {




More information about the sr-dev mailing list