Browse Source

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
pull/1640/head
Richard Fuchs 3 years ago
parent
commit
22a6faad83
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call.c

+ 1
- 1
daemon/call.c View File

@ -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 */


Loading…
Cancel
Save