Browse Source

Fix `subscribe request` SDP media direction

When building the SDP for a `subscribe request` command, take into
consideration the media direction of the source stream - if stream is
`recvonly`, then we do not have anything to send, thus the direction
should be advertised as `inactive`, rather than `sendonly`.
pull/1430/head
Razvan Crainea 4 years ago
parent
commit
e1e9a157c0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      daemon/call.c

+ 4
- 1
daemon/call.c View File

@ -2972,7 +2972,10 @@ static int monologue_subscribe_request1(struct call_monologue *src_ml, struct ca
codec_handlers_update(dst_media, src_media, flags, sp); codec_handlers_update(dst_media, src_media, flags, sp);
MEDIA_SET(dst_media, SEND);
if (MEDIA_ISSET(src_media, SEND))
MEDIA_SET(dst_media, SEND);
else
MEDIA_CLEAR(dst_media, SEND);
MEDIA_CLEAR(dst_media, RECV); MEDIA_CLEAR(dst_media, RECV);
__rtcp_mux_set(flags, dst_media); __rtcp_mux_set(flags, dst_media);


Loading…
Cancel
Save