forked from mirrors/linphone-iphone
fix bug when a caller is proposed video but auto acceptance does not work
This commit is contained in:
parent
1335fca76b
commit
d99a286f0b
2 changed files with 7 additions and 6 deletions
|
|
@ -2369,12 +2369,13 @@ int linphone_core_accept_call_update(LinphoneCore *lc, LinphoneCall *call, const
|
|||
linphone_call_state_to_string(call->state));
|
||||
return -1;
|
||||
}
|
||||
if (params){
|
||||
if (params==NULL){
|
||||
call->params.has_video=lc->video_policy.automatically_accept;
|
||||
}else
|
||||
call->params=*params;
|
||||
call->camera_active=call->params.has_video;
|
||||
update_local_media_description(lc,call);
|
||||
sal_call_set_local_media_description(call->op,call->localdesc);
|
||||
}
|
||||
call->camera_active=call->params.has_video;
|
||||
update_local_media_description(lc,call);
|
||||
sal_call_set_local_media_description(call->op,call->localdesc);
|
||||
sal_call_accept(call->op);
|
||||
md=sal_call_get_final_media_description(call->op);
|
||||
if (md && !sal_media_description_empty(md))
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 719e03ecd0882063f62315b7cfa26bf4801faa90
|
||||
Subproject commit ccdfee2c360b5908fae6c1212551042610272dba
|
||||
Loading…
Add table
Reference in a new issue