From 22a6faad83a5a87a23eef0eaea4863c3c2c4fac9 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 14 Mar 2023 09:31:18 -0400 Subject: [PATCH] MT#55283 honour "send" flag for subscriptions Don't send media to endpoints which have advertised that they don't want to receive any. Change-Id: I305fcd514a3a05b0b732e2c1907ea30823012b19 --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 3a976be41..add55835e 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1477,7 +1477,7 @@ static int __init_streams(struct call_media *A, struct call_media *B, const stru __add_sink_handler(&a->rtp_mirrors, b, attrs); else if (MEDIA_ISSET(A, ECHO) || MEDIA_ISSET(A, BLACKHOLE)) __add_sink_handler(&a->rtp_sinks, a, attrs); - else if (b) + else if (b && MEDIA_ISSET(B, SEND)) __add_sink_handler(&a->rtp_sinks, b, attrs); PS_SET(a, RTP); /* XXX technically not correct, could be udptl too */