From 8b66f0a5e44579bcea5e7ae41f53bb9531434913 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 16 Sep 2025 08:50:31 -0400 Subject: [PATCH] MT#63317 avoid duplicate extmap Change-Id: If3237a5fc07e6257b58722336563d8ca95cd984c --- daemon/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 78fd2498f..abd3ed245 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -3011,6 +3011,10 @@ static void media_set_extmap(struct call_media *media, const extmap_q *emq, if (manip && !manip(&ext_o->name, flags)) continue; + // already present? + if (media->extmap_ops->lookup(media, ext_o->id)) + continue; + __auto_type ext = g_new(__typeof(*ext_o), 1); *ext = *ext_o; t_queue_push_tail(&media->extmap, ext);