osmo-msc/include/osmocom/msc
Stefan Sperling 87cba1f105 Add a VTY command which deletes all expired SMS.
We already delete SMS which have been sent successfully. However, there
are plans to accept SMS for any subscriber in order to fix the problem
described in https://osmocom.org/issues/2354 ("SMSC: Store&Forward not
working for subscribed but unregistered MS").

This means we may end up storing SMS which never get sent, e.g. because
the B subscriber doesn't actually exist. This could lead to a higher
degree of SMS database growth over time, and therefore we need a way
to keep database size under control.

As a first step, introduce a DB function which removes an expired SMS,
and add a VTY command which removes all expired SMS from the DB.

Later commits will build upon this to remove expired SMS automatically.

The SMS expiry time period is currently hard-coded to 2 weeks.
We could make this configurable in the future if desired.

Change-Id: Icd6093b7b5d8db84b19a0aa47c68182566113ee2
Related: OS#2354
2018-01-25 16:16:15 +00:00
..
Makefile.am remove dead ctrl.h header file 2018-01-25 00:38:09 +01:00
a_iface.h cosmetic: move translation of vlr_ciph into msc_vlr_set_ciph_mode() 2017-12-18 05:18:11 +01:00
a_iface_bssap.h cosmetic: rename sccp_rx_udt and sccp_rx_dt to a_* 2017-12-20 16:14:50 +00:00
a_reset.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
bsc_api.h Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
common.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
common_cs.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
db.h Add a VTY command which deletes all expired SMS. 2018-01-25 16:16:15 +00:00
debug.h debug: Remove dead log categories 2018-01-25 00:38:11 +01:00
gsm_04_08.h Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
gsm_04_11.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
gsm_04_14.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
gsm_04_80.h msc/gsm_04_80.h: use '#pragma once' instead of includes 2018-01-10 22:17:37 +06:00
gsm_data.h Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
gsm_data_shared.h Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
gsm_subscriber.h Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
gsup_client.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iu_dummy.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iucs.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iucs_ranap.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
mncc.h MNCC: Add input validation 2018-01-23 17:03:05 +00:00
mncc_int.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
msc_ifaces.h Remove rest_octets.h 2017-09-15 11:31:03 +02:00
oap_client.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
openbscdefines.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
osmo_msc.h subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
rrlp.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
signal.h signal.h: Remove unused/dead signal definitions 2018-01-25 00:38:08 +01:00
silent_call.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
smpp.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
sms_queue.h Add a VTY command which deletes all expired SMS. 2018-01-25 16:16:15 +00:00
socket.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
transaction.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
ussd.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
vlr.h VLR: constify GSUP-related function parameters 2018-01-24 13:55:03 +01:00
vty.h Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00