osmo-msc/include/osmocom/msc
Neels Hofmeyr 16c42b5fba subscr_conn: store complete_layer3_type in conn, not FSM event arg
Instead of jumping through hoops to pass the Complete Layer 3 operation that
created this conn via FSM event dispatch parameters, put it right in the
gsm_subscriber_connection struct, where it always belonged.

Move definition of the enum complete_layer3_type to gsm_data.h, where
gsm_subscriber_connection is defined.

Introduce msc_subscr_conn_update_id() to set the complete_layer3_type of the
conn as soon as a Complete Layer 3 message is received.

In msc_subscr_conn_update_id(), already include an mi_string argument to
prepare for an upcoming patch where the FSM will be allocated much earlier when
the Mobile Identity is not known yet, and we'll also update the fi->id here.

The odd logging change in the msc_vlr_tests output uncovers a wrong use of the
osmo_fsm_inst_dispatch() data argument for SUBSCR_CONN_E_CN_CLOSE events: if a
child FSM signals unsuccessful result, instead of the failure cause, it passed
the complete_layer3_type, as requested upon FSM allocation, which was then
misinterpreted as a failure cause. Now a child FSM failure will pass NULL
instead, while other SUBSCR_CONN_E_CN_CLOSE events may still pass a valid cause
value.

Related: OS#3122
Change-Id: Iae30dd57a8861c4eaaf56999f872d4e635ba97fb
2018-04-03 02:13:16 +02:00
..
Makefile.am remove bsc_api.h and all users - they're all dead code 2018-02-14 00:28:02 +01:00
a_iface.h Introduce new BSSAP logging category/subsystem 2018-02-09 02:22:22 +01:00
a_iface_bssap.h Don't answer to BSC-originated RESET with another RESET 2018-02-09 02:20:51 +01:00
a_reset.h a_reset: Add additional "a_reset_alloc" argument 2018-02-09 02:20:51 +01:00
common.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
common_cs.h dissolve libcommon,libcommon-cs: clean up vty definitions 2018-03-22 16:52:27 +01:00
db.h Delete expired SMS automatically. 2018-01-25 20:30:40 +00:00
debug.h dissolve libcommon: drop debug.c 2018-03-22 17:05:42 +01:00
gsm_04_08.h dead code removal 2018-02-14 00:28:07 +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 subscr_conn: store complete_layer3_type in conn, not FSM event arg 2018-04-03 02:13:16 +02:00
gsm_data_shared.h remove dead code (gsm_parse_reg) 2018-02-14 09:04:56 +01:00
gsm_subscriber.h Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
gsup_client.h dissolve libcommon: move talloc ctx into msc_main.c, drop talloc_ctx.c 2018-03-22 17:06:05 +01:00
iu_dummy.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iucs.h iucs: Add a function to return the connection ID for the IU SCCP conn 2018-02-16 08:09:32 +00: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 mgcp: use osmo-mgw to switch rtp streams 2018-02-05 22:28:43 +00:00
msc_mgcp.h mcgp: let the MGW allocate the MGCP endpoint 2018-03-14 21:08:30 +00: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: store complete_layer3_type in conn, not FSM event arg 2018-04-03 02:13:16 +02: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
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 restore sending of optional MM info messages 2018-03-13 21:13:27 +01:00
vty.h dissolve libcommon,libcommon-cs: clean up vty definitions 2018-03-22 16:52:27 +01:00