aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-01-16 19:50:12 +0100
committerMax <msuraev@sysmocom.de>2019-01-16 20:04:07 +0100
commit17cbe5cd2dd2c0a79835447b05bd379e121b3826 (patch)
tree2cb211d4d86b9f35065c3143f03b83b13486c617
parent413846e65558cfd74e383694461064b896c286c8 (diff)
Log MDCX ACK for established lchan
Previously LCHAN_RTP_EV_IPACC_MDCX_ACK was not permitted for LCHAN_RTP_ST_ESTABLISHED state in lchan FSM. However this message is normal in case of LCLS loop closed via IPA (as opposed to MGCP). Let's permit this message and log it to make debug output easier to read. Change-Id: Ib642df799f3405c4d707eb57b2ebc84386d7f03f Related: OS#2487
-rw-r--r--src/osmo-bsc/lchan_rtp_fsm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/osmo-bsc/lchan_rtp_fsm.c b/src/osmo-bsc/lchan_rtp_fsm.c
index 84cc287..2d15bf2 100644
--- a/src/osmo-bsc/lchan_rtp_fsm.c
+++ b/src/osmo-bsc/lchan_rtp_fsm.c
@@ -565,13 +565,19 @@ static void lchan_rtp_fsm_established_onenter(struct osmo_fsm_inst *fi, uint32_t
static void lchan_rtp_fsm_established(struct osmo_fsm_inst *fi, uint32_t event, void *data)
{
+ struct gsm_lchan *lchan = lchan_rtp_fi_lchan(fi);
+
switch (event) {
case LCHAN_RTP_EV_RELEASE:
case LCHAN_RTP_EV_ROLLBACK:
osmo_fsm_inst_term(fi, OSMO_FSM_TERM_REGULAR, 0);
return;
-
+ case LCHAN_RTP_EV_IPACC_MDCX_ACK:
+ LOG_LCHAN_RTP(lchan, LOGL_NOTICE,
+ "Received MDCX ACK on established lchan's RTP port: %s\n",
+ mgwep_ci_name(lchan->mgw_endpoint_ci_bts));
+ return;
default:
OSMO_ASSERT(false);
}
@@ -689,6 +695,7 @@ static const struct osmo_fsm_state lchan_rtp_fsm_states[] = {
.in_event_mask = 0
| S(LCHAN_RTP_EV_RELEASE)
| S(LCHAN_RTP_EV_ROLLBACK)
+ | S(LCHAN_RTP_EV_IPACC_MDCX_ACK)
,
},
[LCHAN_RTP_ST_ROLLBACK] = {