diff --git a/daemon/call.c b/daemon/call.c index 294346664..114d70cef 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -4470,6 +4470,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 @@ 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() }, <