Do not accept video call when video is disabled but video policy is set to automatically accept.

This commit is contained in:
Ghislain MARY 2014-10-14 15:21:00 +02:00
parent 0f6ce268ae
commit b23d6a1d6d

View file

@ -793,7 +793,7 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro
call->current_params->privacy=(LinphonePrivacyMask)sal_op_get_privacy(call->op);
/*set video support */
md=sal_call_get_remote_media_description(op);
call->params->has_video = lc->video_policy.automatically_accept;
call->params->has_video = linphone_core_video_enabled(lc) && lc->video_policy.automatically_accept;
if (md) {
// It is licit to receive an INVITE without SDP
// In this case WE chose the media parameters according to policy.