From b23d6a1d6d4cabeb9f3ea822d91f659357a61165 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 14 Oct 2014 15:21:00 +0200 Subject: [PATCH] Do not accept video call when video is disabled but video policy is set to automatically accept. --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 94d2e20f4..a838fabdc 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -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.