aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/hlr
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-11-20 02:36:35 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-11-27 03:19:06 +0100
commit07e1602d2dd13d0884ccd623d9f7955b921fa702 (patch)
tree02a08050da1f6a69bbae0b1571abc8cc6a7c205e /include/osmocom/hlr
parentabdfdb8a4a58d36e8ac8e54736589df753225da7 (diff)
db v4: add column last_lu_seen_ps
Location Updating procedures from both CS and PS overwrite the same last_lu_seen field of a subscriber. For upcoming D-GSM it will be important to distinguish those, because only CS attaches qualify for MSISDN lookup. Add column last_lu_seen_ps, and upon PS LU, do not overwrite last_lu_seen, so that last_lu_seen now only reflects CS LU. In the VTY, dump both LU dates distinctively. Change-Id: Id7fc50567211a0870ac0524f6dee94d4513781ba
Diffstat (limited to 'include/osmocom/hlr')
-rw-r--r--include/osmocom/hlr/db.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/hlr/db.h b/include/osmocom/hlr/db.h
index 15d83de..eacc78e 100644
--- a/include/osmocom/hlr/db.h
+++ b/include/osmocom/hlr/db.h
@@ -28,6 +28,7 @@ enum stmt_idx {
DB_STMT_AUC_3G_INSERT,
DB_STMT_AUC_3G_DELETE,
DB_STMT_SET_LAST_LU_SEEN,
+ DB_STMT_SET_LAST_LU_SEEN_PS,
DB_STMT_EXISTS_BY_IMSI,
DB_STMT_EXISTS_BY_MSISDN,
_NUM_DB_STMT
@@ -95,6 +96,7 @@ struct hlr_subscriber {
bool ms_purged_cs;
bool ms_purged_ps;
time_t last_lu_seen;
+ time_t last_lu_seen_ps;
};
/* A format string for use with strptime(3). This format string is