[sr-dev] git:master:fbf8f68e: topos: load contact fields for transaction record
Daniel-Constantin Mierla
miconda at gmail.com
Mon Aug 14 13:16:28 CEST 2017
Module: kamailio
Branch: master
Commit: fbf8f68ed1f8df9af7ed60cb14d379e571550a03
URL: https://github.com/kamailio/kamailio/commit/fbf8f68ed1f8df9af7ed60cb14d379e571550a03
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-08-14T13:15:52+02:00
topos: load contact fields for transaction record
---
Modified: src/modules/topos/tps_storage.c
---
Diff: https://github.com/kamailio/kamailio/commit/fbf8f68ed1f8df9af7ed60cb14d379e571550a03.diff
Patch: https://github.com/kamailio/kamailio/commit/fbf8f68ed1f8df9af7ed60cb14d379e571550a03.patch
---
diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index 4f4397b918..b114360739 100644
--- a/src/modules/topos/tps_storage.c
+++ b/src/modules/topos/tps_storage.c
@@ -896,6 +896,8 @@ int tps_db_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
db_cols[nr_cols++] = &tt_col_x_tag;
db_cols[nr_cols++] = &tt_col_s_method;
db_cols[nr_cols++] = &tt_col_s_cseq;
+ db_cols[nr_cols++] = &tt_col_a_contact;
+ db_cols[nr_cols++] = &tt_col_b_contact;
if (_tpsdbf.use_table(_tps_db_handle, &tt_table_name) < 0) {
LM_ERR("failed to perform use table\n");
@@ -938,6 +940,8 @@ int tps_db_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
TPS_DATA_APPEND_DB(sd, db_res, n, &sd->x_tag); n++;
TPS_DATA_APPEND_DB(sd, db_res, n, &sd->s_method); n++;
TPS_DATA_APPEND_DB(sd, db_res, n, &sd->s_cseq); n++;
+ TPS_DATA_APPEND_DB(sd, db_res, n, &sd->a_contact); n++;
+ TPS_DATA_APPEND_DB(sd, db_res, n, &sd->b_contact); n++;
done:
if ((db_res!=NULL) && _tpsdbf.free_result(_tps_db_handle, db_res)<0)
More information about the sr-dev
mailing list