From 4068ab278b66af7010c3acc73a7bb87bf651fc46 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 1 Apr 2018 20:55:54 +0200 Subject: properly receive BSSMAP Clear Complete and Iu Release Complete When sending a BSSMAP Clear or Iu Release, do not immediately discard the conn, but wait until a BSSMAP Clear Complete / Iu Release Complete has been received. Hence we will no longer show in the log that an incoming Release/Clear Complete belongs to an unknown subscriber, but will still be around to properly log the release. Related: OS#3122 Change-Id: Ie4c6aaba3866d6e5b98004e8870a215e8cf8ffc1 --- src/libmsc/osmo_msc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libmsc/osmo_msc.c') diff --git a/src/libmsc/osmo_msc.c b/src/libmsc/osmo_msc.c index a5184b213..cc67a5ac9 100644 --- a/src/libmsc/osmo_msc.c +++ b/src/libmsc/osmo_msc.c @@ -283,6 +283,11 @@ void _msc_subscr_conn_put(struct gsm_subscriber_connection *conn, osmo_fsm_inst_dispatch(conn->fi, SUBSCR_CONN_E_UNUSED, NULL); } +bool msc_subscr_conn_used_by(struct gsm_subscriber_connection *conn, enum msc_subscr_conn_use token) +{ + return conn && (conn->use_tokens & (1 << token)); +} + const struct value_string msc_subscr_conn_use_names[] = { {MSC_CONN_USE_UNTRACKED, "UNTRACKED"}, {MSC_CONN_USE_COMPL_L3, "compl_l3"}, -- cgit v1.2.3