Commit 73a37d42 authored by Simon Morlat's avatar Simon Morlat
Browse files

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

parent 4bef511e
......@@ -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;
}
}
......
......@@ -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.*/
......
oRTP @ 4214b357
Subproject commit 45ae584ce2493860056a74ae0f31417a5194be8c
Subproject commit 4214b357a598156bf750e045261a910f5185b46d
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment