do not set lc->current_call for a call that is in a conference

This commit is contained in:
Simon Morlat 2011-10-03 10:50:40 +02:00
parent 495e3ab7b9
commit b7dacbd01a

View file

@ -333,7 +333,8 @@ static void call_accepted(SalOp *op){
}
linphone_core_update_streams (lc,call,md);
linphone_call_set_state(call, LinphoneCallStreamsRunning, "Streams running");
lc->current_call=call;
if (!call->current_params.in_conference)
lc->current_call=call;
}
}else{
/*send a bye*/
@ -391,7 +392,8 @@ static void call_updating(SalOp *op){
if(lc->vtable.display_status)
lc->vtable.display_status(lc,_("We have been resumed..."));
linphone_call_set_state (call,LinphoneCallStreamsRunning,"Connected (streams running)");
lc->current_call=call;
if (!call->current_params.in_conference)
lc->current_call=call;
}else{
prevstate=call->state;
linphone_call_set_state(call, LinphoneCallUpdatedByRemote,"Call updated by remote");