From e8a4bb1ede58af9e2707d24289df87373ba9cdcd Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 13 Oct 2026 11:30:16 +0300 Subject: [PATCH] MT#55283 keep a=label in publish answer monologue_publish() never copied the offered label into the media, so sdp_create() omitted a=label from the publish answer and from subscribe requests for that publisher. Add the missing media_update_label() call. Closes #2200 Change-Id: Id9aaf4ab09c21f98d3dcaf78632413b99f4a97ff (cherry picked from commit b66c59bed64dfeaf4eb131f667fd9e761218496b) --- daemon/call.c | 1 + t/auto-daemon-tests-pubsub.pl | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 3d63c7289..4ea516b6c 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -4437,6 +4437,7 @@ int monologue_publish(struct call_monologue *ml, sdp_streams_q *streams, sdp_ng_ media_update_type(media, sp); media_update_protocol(media, sp); media_update_media_id(media, sp); + media_update_label(media, flags, &sp->label); media_loop_protect(sp, media); media_update_flags(media, sp); media_update_crypto(media, sp, flags); diff --git a/t/auto-daemon-tests-pubsub.pl b/t/auto-daemon-tests-pubsub.pl index 0f506f48b..4b28c8f7b 100755 --- a/t/auto-daemon-tests-pubsub.pl +++ b/t/auto-daemon-tests-pubsub.pl @@ -4987,5 +4987,61 @@ SDP snd($sock_a, $port_a, rtp(8, 2001, 4160, 0x3456, "\x00" x 160)); rcv($sock_b, $port_b, rtpm(8, 2001, 4160, 0x3456, "\x00" x 160)); + +new_call; + +publish('publish with a=label', + { }, < ft() }, <