Browse Source

MT#55283 consume recv/inactive flag for subs

If a subscribe answer says that it doesn't want to receive any media
(i.e. `inactive` - `recv` flag unset), clear our corresponding `send`
flag so that we actually don't send media there.

Change-Id: I8862cc6f4121a82c723a8303ba70345d064cd243
pull/1640/head
Richard Fuchs 3 years ago
parent
commit
f0219b78c2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      daemon/call.c

+ 1
- 0
daemon/call.c View File

@ -3522,6 +3522,7 @@ int monologue_subscribe_answer(struct call_monologue *dst_ml, struct sdp_ng_flag
return -1; return -1;
MEDIA_CLEAR(dst_media, RECV); MEDIA_CLEAR(dst_media, RECV);
bf_copy(&dst_media->media_flags, MEDIA_FLAG_SEND, &sp->sp_flags, SP_FLAG_RECV);
// XXX check answer SDP parameters // XXX check answer SDP parameters


Loading…
Cancel
Save