From 5b199f473f76895b81a10e6d5d48d8c731eb485a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 17 Oct 2025 08:03:31 -0400 Subject: [PATCH] MT#63317 use endpoint map as test for disabled Change-Id: I425e33030c22119d459e3f58a2b00a64126b9e69 --- daemon/call.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 9d4398d43..82d1b30f7 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2027,6 +2027,8 @@ del_next: static void __disable_streams(struct call_media *media, unsigned int num_ports) { struct packet_stream *ps; + media->endpoint_map = NULL; + __num_media_streams(media, num_ports); for (__auto_type l = media->streams.head; l; l = l->next) { @@ -3427,7 +3429,7 @@ static void monologue_bundle_check_consistency(struct call_monologue *ml) { } // rejected/disabled stream? - if (!media->streams.head->data->selected_sfd) { + if (!media->endpoint_map) { if (media->bundle == media) ilog(LOG_WARN, "Bundle head has been rejected/disabled"); media->bundle = NULL; @@ -3648,7 +3650,7 @@ static void monologue_bundle_offer(struct call_monologue *ml, sdp_ng_flags *flag if (!media) continue; - if (!media->streams.length || !media->streams.head->data->selected_sfd) + if (!media->endpoint_map) continue; // disabled stream // we should have a MID, but check anyway @@ -5602,6 +5604,7 @@ void monologue_destroy(struct call_monologue *monologue) { while ((sfd = t_queue_pop_head(&ps->sfds))) stream_fd_release(sfd); } + m->endpoint_map = NULL; } monologue->deleted_us = 0;