allow explicit pause/resume to "repair" a broken call

This commit is contained in:
Simon Morlat 2016-02-18 15:39:32 +01:00
parent 4bef511e53
commit 73a37d4242
3 changed files with 5 additions and 2 deletions

View file

@ -4895,7 +4895,8 @@ void linphone_call_repair_if_broken(LinphoneCall *call){
linphone_call_params_unref(params);
break;
default:
ms_error("linphone_call_resume_if_broken(): don't know what to do in state [%s]", linphone_call_state_to_string(call->state));
ms_warning("linphone_call_resume_if_broken(): don't know what to do in state [%s]", linphone_call_state_to_string(call->state));
call->broken = FALSE;
break;
}
}

View file

@ -4022,6 +4022,7 @@ int _linphone_core_pause_call(LinphoneCore *lc, LinphoneCall *call){
ms_error("No reason to pause this call, it is already paused or inactive.");
return -1;
}
call->broken = FALSE;
linphone_call_set_state(call, LinphoneCallPausing, "Pausing call");
linphone_call_make_local_media_description(call);
#ifdef BUILD_UPNP
@ -4098,6 +4099,7 @@ int linphone_core_resume_call(LinphoneCore *lc, LinphoneCall *call){
}
call->was_automatically_paused=FALSE;
call->broken = FALSE;
/* Stop playing music immediately. If remote side is a conference it
prevents the participants to hear it while the 200OK comes back.*/

2
oRTP

@ -1 +1 @@
Subproject commit 45ae584ce2493860056a74ae0f31417a5194be8c
Subproject commit 4214b357a598156bf750e045261a910f5185b46d