osmo-msc/src/libmsc
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 dissolve libcommon-cs: mv a_reset.c to libmsc 2018-03-22 17:07:36 +01:00
a_iface.c a_iface: If L3/DTAP returns error in COMPL L3, close SCCP connection 2018-03-18 23:00:27 +01:00
a_iface_bssap.c cosmetic: rx_bssmap: read message type once into local var 2018-04-03 02:12:09 +02:00
a_reset.c dissolve libcommon-cs: mv a_reset.c to libmsc 2018-03-22 17:07:36 +01:00
ctrl_commands.c Add control command to expire subscriber 2018-01-05 10:10:35 +00:00
db.c Wrap osmo_strlcpy() calls 2018-02-05 12:57:06 +01:00
gsm_04_08.c subscr_conn: store complete_layer3_type in conn, not FSM event arg 2018-04-03 02:13:16 +02:00
gsm_04_11.c dissolve libcommon-cs: move gsm48_* code to libmsc, drop sms_next_rp_msg_ref() 2018-03-22 17:10:49 +01:00
gsm_04_14.c remove bsc_api.h and all users - they're all dead code 2018-02-14 00:28:02 +01:00
gsm_04_80.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
gsm_subscriber.c Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
iu_dummy.c iucs: Add a function to return the connection ID for the IU SCCP conn 2018-02-16 08:09:32 +00:00
iucs.c iucs: Add a function to return the connection ID for the IU SCCP conn 2018-02-16 08:09:32 +00:00
iucs_ranap.c mgcp: use osmo-mgw to switch rtp streams 2018-02-05 22:28:43 +00:00
mncc.c Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
mncc_builtin.c Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
mncc_sock.c dissolve libcommon: move talloc ctx into msc_main.c, drop talloc_ctx.c 2018-03-22 17:06:05 +01:00
msc_ifaces.c dissolve libcommon: drop gsm_data.c, move code to libmsc 2018-03-22 17:06:51 +01:00
msc_mgcp.c msc_mgcp.c: Fix several wrong ptr printf fmt 2018-03-17 01:54:34 +01:00
msc_vty.c cosmetic: rename gsm_subscriber_connection->conn_fsm to ->fi 2018-04-03 02:13:04 +02:00
osmo_msc.c cosmetic: rename gsm_subscriber_connection->conn_fsm to ->fi 2018-04-03 02:13:04 +02:00
rrlp.c Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
silent_call.c silent call: clarify rc and error messages logged on vty 2018-03-10 05:17:38 +01:00
smpp_openbsc.c Wrap osmo_strlcpy() calls 2018-02-05 12:57:06 +01:00
smpp_smsc.c cosmetic: Use msgb_hexdump*() rather than manual osmo_hexdump() on msg 2018-02-09 02:22:09 +01:00
smpp_smsc.h libmsc: add support for SMPP delivery receipts 2017-08-27 02:33:49 +02:00
smpp_utils.c dissolve libcommon: drop debug.c 2018-03-22 17:05:42 +01:00
smpp_vty.c vty: skip installing cmds now always installed by default 2017-11-01 00:51:21 +01:00
sms_queue.c Fix whitespace issues 2018-02-06 19:31:08 +01:00
subscr_conn.c subscr_conn: store complete_layer3_type in conn, not FSM event arg 2018-04-03 02:13:16 +02:00
transaction.c cosmetic: rename gsm_subscriber_connection->conn_fsm to ->fi 2018-04-03 02:13:04 +02:00
ussd.c src/libmsc/ussd.c: drop useless forward declaration 2018-01-10 22:17:37 +06:00