aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-02-26 15:20:49 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-26 15:50:17 +0000
commite4f9172f44996d36c6ef9d81f89c73ddede51edd (patch)
tree671c066d8382501f419fdd969ee714417b5af490
parent58616788ba67874eb83ee532497d200e076f88dd (diff)
msc_mgcp: Add FSM event names
The FSM (fsm_msc_mgcp) lacks a proper definition of the FSM event names. This causes problems when inspecting the FSM using the VTY. - Add proper FSM Event names Closes: OS#2924 Change-Id: I6823756a63b08a71e5518130e49751aa073dbcd2
-rw-r--r--src/libmsc/msc_mgcp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libmsc/msc_mgcp.c b/src/libmsc/msc_mgcp.c
index 2bc186eb7..3ac30c458 100644
--- a/src/libmsc/msc_mgcp.c
+++ b/src/libmsc/msc_mgcp.c
@@ -134,6 +134,18 @@ enum msc_mgcp_fsm_evt {
EV_DLCX_ALL_RESP,
};
+static const struct value_string msc_mgcp_fsm_evt_names[] = {
+ OSMO_VALUE_STRING(EV_INIT),
+ OSMO_VALUE_STRING(EV_ASSIGN),
+ OSMO_VALUE_STRING(EV_CONNECT),
+ OSMO_VALUE_STRING(EV_TEARDOWN),
+ OSMO_VALUE_STRING(EV_TEARDOWN_ERROR),
+ OSMO_VALUE_STRING(EV_CRCX_RAN_RESP),
+ OSMO_VALUE_STRING(EV_CRCX_CN_RESP),
+ OSMO_VALUE_STRING(EV_DLCX_ALL_RESP),
+ {0, NULL}
+};
+
/* A general error handler function. On error we still have an interest to
* remove a half open connection (if possible). This function will execute
* a controlled jump to the DLCX phase. From there, the FSM will then just
@@ -860,6 +872,7 @@ static struct osmo_fsm fsm_msc_mgcp = {
.num_states = ARRAY_SIZE(fsm_msc_mgcp_states),
.log_subsys = DMGCP,
.timer_cb = fsm_timeout_cb,
+ .event_names = msc_mgcp_fsm_evt_names,
};
/* Notify that a new call begins. This will create a connection for the