Module: kamailio
Branch: 5.6
Commit: 74416f1fe93dad9ce62c1f31daeb6385d92c3f74
URL:
https://github.com/kamailio/kamailio/commit/74416f1fe93dad9ce62c1f31daeb638…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-24T13:55:17+01:00
topos: use proper field for datetime value
(cherry picked from commit 446892331900c2303e531da55bcb494ccb2d8bce)
---
Modified: src/modules/topos/tps_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/74416f1fe93dad9ce62c1f31daeb638…
Patch:
https://github.com/kamailio/kamailio/commit/74416f1fe93dad9ce62c1f31daeb638…
---
diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index 56d56776a42..e0649b683d3 100644
--- a/src/modules/topos/tps_storage.c
+++ b/src/modules/topos/tps_storage.c
@@ -890,7 +890,7 @@ int tps_db_insert_branch(tps_data_t *td)
db_keys[nr_keys] = &tt_col_rectime;
db_vals[nr_keys].type = DB1_DATETIME;
- db_vals[nr_keys].val.int_val = time(NULL);
+ db_vals[nr_keys].val.time_val = time(NULL);
nr_keys++;
db_keys[nr_keys] = &tt_col_a_callid;