From b4b8c475de0f45f48b567a079ba96c4161a6229d Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Sun, 2 Mar 2025 09:50:06 +0100 Subject: [PATCH] MT#62272 moh: allow inactive by player If MoH originator has inactive stream allow him to trigger media player. This ensures that we support two ways of putting on hold: - sendonly - inactive Change-Id: I81b33184d1f1bcb0ad7c2bb3e7ada96b2c52b1ac --- daemon/media_player.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/media_player.c b/daemon/media_player.c index cbcc3a433..42ccebf6f 100644 --- a/daemon/media_player.c +++ b/daemon/media_player.c @@ -1158,7 +1158,8 @@ static const rtp_payload_type *media_player_play_setup(struct media_player *mp) media = mp->ml->medias->pdata[i]; if (media->type_id != MT_AUDIO) continue; - if (!MEDIA_ISSET(media, SEND)) + /* moh allows inactive */ + if (!mp->opts.moh && !MEDIA_ISSET(media, SEND)) continue; if (media->streams.length == 0) continue;