osmo-msc/openbsc/src/libmsc
Holger Hans Peter Freyther 2826df56b2 subscr: Make db_create_subscriber fail on duplicates
The issue of db_create_subscriber updating an already existing subscr
is that the same subscriber will then have two entries in the active
subscribers list. In general this will break assumptions that a subscr
can be compared by comparing the pointer.

In the case of the VTY this was not an issue as the created subscr
was immediately destroyed again but it is better to avoid this problem.

Change the VTY command to find the subscriber and then call sync to
have the updated time set. The side-effect is we will now have two
queries for the subscriber. Once through subscr_get_by_imsi and once
through db_create_subscriber.

Change the db_create_subscriber to fail if a subscriber already exists,
and add a testcase for this behavior and do not updated the 'updated'
timestamp of an already existing subscriber.

Add a testcase for this behavior.

Related: OS Issue #1657
2016-04-06 21:19:53 +02:00
..
Makefile.am Patch to make openbsc find libsmpp34 2016-02-18 19:39:32 +01:00
auth.c Fix MM Auth: zero-initialize auth tuple before first use 2016-03-31 11:56:49 +02:00
ctrl_commands.c msc: Add and use gsm_subscriber_group 2014-12-05 14:59:02 +01:00
db.c subscr: Make db_create_subscriber fail on duplicates 2016-04-06 21:19:53 +02:00
gsm_04_08.c fix confusing typo in constant (THAN -> THEN) 2016-03-17 14:15:16 +01:00
gsm_04_11.c 04.08: apply new transaction id inline functions 2016-03-15 14:18:52 +01:00
gsm_04_11_helper.c sms: Increment the RP Message Reference for each transaction 2014-02-20 11:35:56 +01:00
gsm_04_80.c gsm0408: Provide unique strings for the gsm 04.08 message 2016-01-30 09:57:49 +01:00
gsm_subscriber.c subscr: Fix potential subscr ref count issue 2015-08-08 20:46:49 +02:00
meas_feed.c msc: Add channel information to the meas_feed, bump version to v1. 2015-09-14 10:08:41 +02:00
meas_feed.h Initial support for export + curses-visualization of measurements 2015-01-01 13:03:03 +01:00
mncc.c mncc.c: Convert mncc_names[] to 'struct value_string' 2015-12-12 21:43:16 +01:00
mncc_builtin.c mncc: introduce 'struct gsm_mncc_bridge' for MNCC_BRIDGE 2015-12-12 21:43:16 +01:00
mncc_sock.c osmo-nitb: add -M to pass specific MNCC socket path 2016-02-25 12:18:03 +01:00
osmo_msc.c msc: Remove oversimplified todo entry and add a comment 2016-02-10 10:42:20 +01:00
rrlp.c src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
silent_call.c 04.08: apply new bitmask functions, fix bitmask use 2016-03-15 14:15:00 +01:00
smpp_openbsc.c smpp: refactor initialization, add bind address 2016-02-25 12:18:04 +01:00
smpp_smsc.c smpp: refactor initialization, add bind address 2016-02-25 12:18:04 +01:00
smpp_smsc.h smpp: refactor initialization, add bind address 2016-02-25 12:18:04 +01: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: refactor initialization, add bind address 2016-02-25 12:18:04 +01:00
sms_queue.c SMS: Attempting to send SMS is not a NOTICEable event 2015-01-05 14:05:32 +01:00
token_auth.c msc: Add and use gsm_subscriber_group 2014-12-05 14:59:02 +01:00
transaction.c sub: Remove the queue from the subscriber code 2015-04-29 18:53:28 +02:00
ussd.c ussd: Reject and release unhandled SS requests/interrogation 2013-12-28 17:52:23 +01:00
vty_interface_layer3.c subscr: Make db_create_subscriber fail on duplicates 2016-04-06 21:19:53 +02:00