aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-11-29 16:25:34 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-11-30 14:19:11 +0100
commit67fb8b7c17929bec91f75847f1df4459bb29a249 (patch)
treebeff54b4f73c9346a61fc6c8ee827609f94d655e
parentc309754ff9bb76cdc303489727bd9dba430480f9 (diff)
fix assignment success counters: count *before* cleanup of fsm state
Counting the Assignment success after osmo_fsm_inst_term() meant that we were counting a cleared out channel mode, which always yielded signalling mode. Count the Assignment success *before* terminating, so that we correctly count the successful assignment as speech mode. Related: SYS#4878 Related: Icb1386ec2ccd70eb3c026301b9b08ad7177278f7 (osmo-ttcn3-hacks) Change-Id: Ie9fcd1e86f27ecb2f11e2e8813faac365cb470b8
-rw-r--r--src/osmo-bsc/assignment_fsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c
index a3ec55bf3..0243058b3 100644
--- a/src/osmo-bsc/assignment_fsm.c
+++ b/src/osmo-bsc/assignment_fsm.c
@@ -295,10 +295,10 @@ static void assignment_success(struct gsm_subscriber_connection *conn)
conn->user_plane.msc_assigned_rtp_port = conn->assignment.req.msc_rtp_port;
}
+ assignment_count_result(CTR_ASSIGNMENT_COMPLETED);
+
LOG_ASSIGNMENT(conn, LOGL_DEBUG, "Assignment successful\n");
osmo_fsm_inst_term(conn->assignment.fi, OSMO_FSM_TERM_REGULAR, 0);
-
- assignment_count_result(CTR_ASSIGNMENT_COMPLETED);
}
static void assignment_fsm_update_id(struct gsm_subscriber_connection *conn)