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 c5fef5e0d4)
(cherry picked from commit 09d7a8b01b)
mr26.0.1
Donat Zenichev 1 month ago
parent 2fa697cb91
commit f1a6db611a

@ -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);

Loading…
Cancel
Save