allow contact address to be changed during call updates

This commit is contained in:
Simon Morlat 2013-06-20 11:36:58 +02:00
parent b4478c85f7
commit 3d1f4a1d8c

View file

@ -2821,6 +2821,10 @@ int linphone_core_start_update_call(LinphoneCore *lc, LinphoneCall *call){
if (lc->vtable.display_status)
lc->vtable.display_status(lc,_("Modifying call parameters..."));
sal_call_set_local_media_description (call->op,call->localdesc);
if (call->dest_proxy && call->dest_proxy->op){
/*give a chance to update the contact address if connectivity has changed*/
sal_op_set_contact(call->op,sal_op_get_contact(call->dest_proxy->op));
}else sal_op_set_contact(call->op,NULL);
return sal_call_update(call->op,subject);
}