diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-10-05 01:14:41 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-11-01 17:35:17 +0100 |
commit | 523b92f3aadb9a63e3048f8fee58d380ced7b7dc (patch) | |
tree | 7d7e9cef6645596ca24e81bc193c8a354f3793ac | |
parent | 33f71a1200c95c45652130923709b9b17a32e9a6 (diff) |
rtp_stream: sanely cancel MGW endpoint FSM notify
libosmo-mgcp-client recently introduced osmo_mgcpc_ep_cancel_notify() to cancel
notification if a notify target FSM deallocates. Use it for sanity in
rtp_stream FSM cleanup, the notify target for endpoint FSMs.
Depends: I41687d7f3a808587ab7f7520f46dcc3c29cff92d (osmo-mgw)
I14f7a46031327fb2b2047b998eae6ad0bb7324ad (osmo-mgw)
Change-Id: I351bb8e8fbc46eb629bcd599f6453e2c84c15015
-rw-r--r-- | src/libmsc/rtp_stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmsc/rtp_stream.c b/src/libmsc/rtp_stream.c index c3880bf7b..d78743e41 100644 --- a/src/libmsc/rtp_stream.c +++ b/src/libmsc/rtp_stream.c @@ -220,6 +220,7 @@ static void rtp_stream_fsm_cleanup(struct osmo_fsm_inst *fi, enum osmo_fsm_term_ { struct rtp_stream *rtps = fi->priv; if (rtps->ci) { + osmo_mgcpc_ep_cancel_notify(osmo_mgcpc_ep_ci_ep(rtps->ci), fi); osmo_mgcpc_ep_ci_dlcx(rtps->ci); rtps->ci = NULL; } |