From 2b47cda50477e661905b622434bd2451ebc47a8a 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 2d55988d9..86c43c4b0 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -3916,6 +3916,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);