From 9baf027be175c76541b270b59ab77e3406fdadf0 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 17 Sep 2025 14:15:49 -0400 Subject: [PATCH] MT#63317 print a=bundle-only Change-Id: Ieca566bb76b54093a0012ccc0d7021a5cfa75a11 --- daemon/sdp.c | 3 +++ t/auto-daemon-tests-bundle.pl | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index adcf425ec..ca384197d 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -2910,6 +2910,9 @@ static void print_sdp_media_section(GString *s, struct call_media *media, append_attr_to_gstring(s, "mid", &media->media_id, flags, media->type_id); if (media->label.len && flags->siprec) append_attr_to_gstring(s, "label", &media->label, flags, media->type_id); + if (media->bundle && MEDIA_ISSET(media, BUNDLE_ONLY) && flags->opmode == OP_OFFER + && media->bundle != media) + append_null_attr_to_gstring(s, "bundle-only", flags, media->type_id); /* nothing more to be printed for inactive stream (non-accepted media session) */ if (inactive_media) diff --git a/t/auto-daemon-tests-bundle.pl b/t/auto-daemon-tests-bundle.pl index b97b061e4..1a50e4898 100755 --- a/t/auto-daemon-tests-bundle.pl +++ b/t/auto-daemon-tests-bundle.pl @@ -1990,6 +1990,7 @@ t=0 0 m=audio 6190 RTP/AVP 0 c=IN IP4 198.51.100.14 a=sendrecv +a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level m=video 6192 RTP/AVP 105 c=IN IP4 198.51.100.14 a=rtpmap:105 H264/90000 @@ -2005,7 +2006,8 @@ c=IN IP4 203.0.113.1 a=mid:1 a=rtpmap:0 PCMU/8000 a=extmap-allow-mixed -a=extmap:1 urn:ietf:params:rtp-hdrext:sdes:mid +a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level +a=extmap:2 urn:ietf:params:rtp-hdrext:sdes:mid a=sendrecv a=rtcp:PORT m=video PORT RTP/AVP 105 @@ -2013,7 +2015,7 @@ c=IN IP4 203.0.113.1 a=mid:2 a=rtpmap:105 H264/90000 a=extmap-allow-mixed -a=extmap:1 urn:ietf:params:rtp-hdrext:sdes:mid +a=extmap:2 urn:ietf:params:rtp-hdrext:sdes:mid a=sendrecv a=rtcp:PORT SDP @@ -2209,6 +2211,7 @@ a=rtcp:PORT m=video PORT RTP/AVP 105 c=IN IP4 203.0.113.1 a=mid:2 +a=bundle-only a=rtpmap:105 H264/90000 a=extmap-allow-mixed a=extmap:1 urn:ietf:params:rtp-hdrext:sdes:mid