diff options
author | Jan Luebbe <jluebbe@debian.org> | 2012-12-27 00:27:16 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2012-12-27 00:53:47 +0100 |
commit | 49c291a574a181a6b4c643865e72558a67c2a4f4 (patch) | |
tree | c550e63a8c3dbfec3dd6c83722b8cbd7873bc966 /openbsc/include/openbsc/db.h | |
parent | c8fddc509df4f3c2c0941cee263a3568cee71f3c (diff) |
libmsc: Track and update the location update expiry
Set the subscriber expiry timeout to twice the duration of the location
update period and provide functions subscr_expire() and
db_subscriber_expire() to mark subscribers offline that have missed two
location update periods.
This patch increases the DB revision to 3, so the hlr will be
incompatible with prior versions.
We should allow 0 for T3212 as well to disable the location update
period. In that case we will need a way to indicate that in the
database.
Diffstat (limited to 'openbsc/include/openbsc/db.h')
-rw-r--r-- | openbsc/include/openbsc/db.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/db.h b/openbsc/include/openbsc/db.h index d0c85ea30..25c2aea70 100644 --- a/openbsc/include/openbsc/db.h +++ b/openbsc/include/openbsc/db.h @@ -41,6 +41,7 @@ struct gsm_subscriber *db_get_subscriber(struct gsm_network *net, enum gsm_subscriber_field field, const char *subscr); int db_sync_subscriber(struct gsm_subscriber *subscriber); +int db_subscriber_expire(void *priv, void (*callback)(void *priv, long long unsigned int id)); int db_subscriber_alloc_tmsi(struct gsm_subscriber *subscriber); int db_subscriber_alloc_exten(struct gsm_subscriber *subscriber); int db_subscriber_alloc_token(struct gsm_subscriber *subscriber, uint32_t* token); |