if (md && !sal_media_description_empty(md))
{
+ linphone_core_update_streams (lc,call,md);
+
if (sal_media_description_has_dir(call->localdesc,SalStreamSendRecv)){
ms_message("Our local status is SalStreamSendRecv");
if (sal_media_description_has_dir (md,SalStreamRecvOnly) || sal_media_description_has_dir(md,SalStreamInactive)){
lc->current_call=call;
}else{
prevstate=call->state;
+ if(lc->vtable.display_status)
+ lc->vtable.display_status(lc,_("Call has been updated by remote..."));
linphone_call_set_state(call, LinphoneCallUpdatedByRemote,"Call updated by remote");
}
}
/*accept the modification (sends a 200Ok)*/
sal_call_accept(op);
- linphone_core_update_streams (lc,call,md);
if (prevstate!=LinphoneCallIdle){
linphone_call_set_state (call,prevstate,"Connected (streams running)");
}
lc->previewstream=NULL;
}
call->current_params.has_video=FALSE;
- if (vstream && vstream->dir!=SalStreamInactive && vstream->port!=0) {
+ if (vstream!=NULL && vstream->dir!=SalStreamInactive && vstream->port!=0) {
const char *addr=vstream->addr[0]!='\0' ? vstream->addr : call->resultdesc->addr;
call->video_profile=make_profile(call,call->resultdesc,vstream,&used_pt);
if (used_pt!=-1){
cname=linphone_address_as_string_uri_only(me);
#if defined(VIDEO_ENABLED)
- if (vstream && vstream->dir!=SalStreamInactive && vstream->payloads!=NULL){
+ if (vstream!=NULL && vstream->dir!=SalStreamInactive && vstream->payloads!=NULL){
/*when video is used, do not make adaptive rate control on audio, it is stupid.*/
use_arc=FALSE;
}
#endif
linphone_call_start_audio_stream(call,cname,all_inputs_muted,send_ringbacktone,use_arc);
- if (call->videostream!=NULL) linphone_call_start_video_stream(call,cname,all_inputs_muted);
+ if (call->videostream!=NULL) {
+ linphone_call_start_video_stream(call,cname,all_inputs_muted);
+ }
call->all_muted=all_inputs_muted;
call->playing_ringbacktone=send_ringbacktone;