From 15dc584e2a4b0c27d8fb8ebfb28f081808b2fb8a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 5 Sep 2025 12:14:19 -0400 Subject: [PATCH] MT#63317 check if streams are matching Change-Id: Ief5c10c202447238120eb106a832d768111e3b9c --- daemon/call.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index f9a63eeaf..55716b6fc 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -3339,6 +3339,14 @@ static void monologue_bundle_check_consistency(struct call_monologue *ml) { if (!bundle) continue; + // same number of streams? + if (media->streams.length != bundle->streams.length) { + ilog(LOG_WARN, "Mismatched number of streams (%u vs %u), cannot bundle media", + media->streams.length, bundle->streams.length); + media->bundle = NULL; + continue; + } + // are PTs unique? for (__auto_type l = media->codecs.codec_prefs.head; l; l = l->next) { __auto_type pt = l->data;