From 09d7a8b01b781a285ce9036da0eaa1e7baa472fa Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 21 May 2026 16:53:20 +0200 Subject: [PATCH] MT#62750 stop media: if MoH is ongoing, ignore the command If someone wants to stop the media for this particular monologue, and it already has the MP allocated, which is marked for MoH, then just ignore the stop media command. This is to not let the play media/stop media procedures overlap with potentially (previously) triggered MP via MoH. Change-Id: If0bf4264b9c640b99f844efe5c2c8bc201a6ad16 (cherry picked from commit c5fef5e0d43f12a3b9fb52442df6f477f05078e3) --- daemon/call_interfaces.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 331eb88f0..a522b5b45 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -4019,6 +4019,9 @@ const char *call_stop_media_ng(ng_command_ctx_t *ctx) { if (!monologue->player) return "Not currently playing media"; + if (monologue->player->opts.moh) + return "Currently MoH ongoing, ignore stop media."; + last_frame_pos = call_stop_media_for_ml(monologue); } parser->dict_add_int(ctx->resp, "last-frame-pos", last_frame_pos);