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 22a6faad83
commit f0219b78c2

@ -3522,6 +3522,7 @@ int monologue_subscribe_answer(struct call_monologue *dst_ml, struct sdp_ng_flag
return -1;
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

Loading…
Cancel
Save