aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmsc/db.c
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2017-08-16 22:45:07 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-08-27 02:33:50 +0200
commitc601adcb8908632ab9d9a79548183db2b5bb5381 (patch)
treea05368a00393640f9382b3e666bd8b7de57bad34 /src/libmsc/db.c
parent4e4ddff4c2734d706a8566796025e50909bad814 (diff)
libmsc: Use actual delivery time in delivery reports.
Set the time on the status report to the time the message was delivered, as this may not be the same as the time when we are delivering the report to the originating MS. Change-Id: I9056429d40bf02731f004b7833f1de45a0d1add8
Diffstat (limited to 'src/libmsc/db.c')
-rw-r--r--src/libmsc/db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmsc/db.c b/src/libmsc/db.c
index 3495806de..ae7e2876b 100644
--- a/src/libmsc/db.c
+++ b/src/libmsc/db.c
@@ -742,6 +742,7 @@ static struct gsm_sms *sms_from_result(struct gsm_network *net, dbi_result resul
/* FIXME: validity */
/* FIXME: those should all be get_uchar, but sqlite3 is braindead */
+ sms->created = dbi_result_get_datetime(result, "created");
sms->reply_path_req = dbi_result_get_ulonglong(result, "reply_path_req");
sms->status_rep_req = dbi_result_get_ulonglong(result, "status_rep_req");
sms->is_report = dbi_result_get_ulonglong(result, "is_report");