osmo-msc/openbsc/src/libmsc
Holger Hans Peter Freyther c63f6f1f32 expiration: Allow to disable the periodic location updating procedure
Disable the periodic LU using "no periodic location update" VTY
command. In that case set the expire_lu to 0 which will then be
translated to a NULL in the database layer. This leads to a bit of
copy and paste in the db_sync_subscriber method but I don't see
how we could easily use 'datetime(%i, 'unixepoch')' and 'NULL'
at the same time.

Change the query to find expired queries to check for NOT NULL
and the time being in the past. This means if there are still
old subscribers in the database they might not be expired. One
would need to execute a query like "UPATE Subscriber SET expire_lu
= 0 WHERE expire_lu is null". The same applies when disabling the
periodic LU. One would need to update the database by hand.

Manual tests executed/passed:

1.) periodic LU enabled:

  * use gst LUTest.st to do a LU
  * UPDATE Subscriber SET expire_lu=datetime('now');
  * observe the subscriber being expired (it was)

2.) periodic LU disabled:

  * use gst LUTest.st to do a LU
  * verify that the expire_lu is NULL in the database
2013-07-27 22:02:24 +02:00
..
Makefile.am smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
auth.c src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
db.c expiration: Allow to disable the periodic location updating procedure 2013-07-27 22:02:24 +02:00
gsm_04_08.c expiration: Speculative fixes for the periodic expiring handling 2013-07-27 21:39:13 +02:00
gsm_04_11.c SMPP: Implement SMPP Osmocom Estensions on MO-SMS 2013-03-13 15:30:48 +01:00
gsm_04_80.c misc: Move from u_int to uint types of stdint.h 2011-04-18 17:31:39 +02:00
gsm_subscriber.c expiration: Allow to disable the periodic location updating procedure 2013-07-27 22:02:24 +02:00
mncc.c misc: Remove sys/types.h includes from the files 2011-04-18 17:31:39 +02:00
mncc_builtin.c CC: Be sure to allocate call instance with talloc_zero() 2013-01-25 08:36:32 +01:00
mncc_sock.c mncc: Include size and offsets of struct gsm_mncc in the hello 2012-01-15 00:40:42 +01:00
osmo_msc.c expiration: Speculative fixes for the periodic expiring handling 2013-07-27 21:39:13 +02:00
rrlp.c src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
silent_call.c sms: Use the DLSMS instead of the DSMS category throughout our code 2012-11-21 21:33:03 +01:00
smpp_openbsc.c smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
smpp_smsc.c misc: Fix compilation warnings 2013-07-27 20:03:08 +02:00
smpp_smsc.h smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
smpp_utils.c smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
smpp_vty.c SMPP: complete the VTY help/documentation 2013-07-21 16:00:28 +08:00
sms_queue.c sms: Use the DLSMS instead of the DSMS category throughout our code 2012-11-21 21:33:03 +01:00
token_auth.c libmsc: Allow to set sender id when sending SMS from the VTY 2013-01-01 17:04:38 +01:00
transaction.c libmsc: Set trans->subscr = NULL after we release it 2012-12-22 18:16:47 +01:00
ussd.c Make sure USSD code only responds *#100# for retrieving own number 2012-02-24 22:23:17 +01:00
vty_interface_layer3.c expiration: Print the "expire_lu" time in show subscriber 2013-07-27 20:03:11 +02:00