Browse code

topos: load associated early dialog transaction using also uuid

(cherry picked from commit 94e8988769662a5ae68e30847eef133d50ec5431)

Daniel-Constantin Mierla authored on 26/04/2021 11:02:11
Showing 1 changed files
... ...
@@ -1144,6 +1144,24 @@ int tps_db_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
1144 1144
 		db_vals[nr_keys].nul = 0;
1145 1145
 		db_vals[nr_keys].val.str_val = bInviteDlg ? sinv : ssub;
1146 1146
 		nr_keys++;
1147
+
1148
+		if(md->a_uuid.len>0) {
1149
+			if(md->a_uuid.s[0]=='a') {
1150
+				db_keys[nr_keys]=&tt_col_a_uuid;
1151
+				db_vals[nr_keys].val.str_val = TPS_STRZ(md->a_uuid);
1152
+			} else if(md->a_uuid.s[0]=='b') {
1153
+				db_keys[nr_keys]=&tt_col_b_uuid;
1154
+				db_vals[nr_keys].val.str_val = TPS_STRZ(md->a_uuid);
1155
+			}
1156
+		} else if(md->b_uuid.len>0) {
1157
+			if(md->b_uuid.s[0]=='a') {
1158
+				db_keys[nr_keys]=&tt_col_a_uuid;
1159
+				db_vals[nr_keys].val.str_val = TPS_STRZ(md->b_uuid);
1160
+			} else if(md->b_uuid.s[0]=='b') {
1161
+				db_keys[nr_keys]=&tt_col_b_uuid;
1162
+				db_vals[nr_keys].val.str_val = TPS_STRZ(md->b_uuid);
1163
+			}
1164
+		}
1147 1165
 	}
1148 1166
 
1149 1167
 	if(msg->first_line.type==SIP_REQUEST && md->x_context.len>0) {