diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2022-10-31 18:15:32 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2023-01-03 00:31:38 +0100 |
commit | a899dea9aa8115a7a0a278470420e259295cd052 (patch) | |
tree | b4627e222fbfccfb99ffb375c90da9d9542cd64a /src/libmsc/rtp_stream.c | |
parent | 5b1f9a2d0c744db565db6298b889984cd403923d (diff) |
rtp_stream_commit: check missing MGW ep only when ready for RTP
Change-Id: I24a81a926b97c9f0fb31df782d1cf931eaff9db1
Diffstat (limited to 'src/libmsc/rtp_stream.c')
-rw-r--r-- | src/libmsc/rtp_stream.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmsc/rtp_stream.c b/src/libmsc/rtp_stream.c index 29025204f..c86d0be75 100644 --- a/src/libmsc/rtp_stream.c +++ b/src/libmsc/rtp_stream.c @@ -361,10 +361,6 @@ void rtp_stream_release(struct rtp_stream *rtps) * least one of them has not yet been sent to the MGW in a previous CRCX or MDCX. */ int rtp_stream_commit(struct rtp_stream *rtps) { - if (!rtps->ci) { - LOG_RTPS(rtps, LOGL_DEBUG, "Not committing: no MGW endpoint CI set up\n"); - return -1; - } if (!osmo_sockaddr_str_is_nonzero(&rtps->remote)) { LOG_RTPS(rtps, LOGL_DEBUG, "Not committing: no remote RTP address known\n"); return -1; @@ -377,6 +373,10 @@ int rtp_stream_commit(struct rtp_stream *rtps) LOG_RTPS(rtps, LOGL_DEBUG, "Not committing: both remote RTP address and codec already set up at MGW\n"); return 0; } + if (!rtps->ci) { + LOG_RTPS(rtps, LOGL_DEBUG, "Not committing: no MGW endpoint CI set up\n"); + return -1; + } LOG_RTPS(rtps, LOGL_DEBUG, "Committing: Tx MDCX to update the MGW: updating%s%s%s\n", rtps->remote_sent_to_mgw ? "" : " remote-RTP-IP-port", |