diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index f7d9c676c..cf827dd25 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2525,10 +2525,10 @@ int linphone_core_pause_call(LinphoneCore *lc, LinphoneCall *call) if (lc->vtable.display_warning) lc->vtable.display_warning(lc,_("Could not pause the call")); } + lc->current_call=NULL; linphone_call_set_state(call,LinphoneCallPausing,"Pausing call"); if (lc->vtable.display_status) lc->vtable.display_status(lc,_("Pausing the current call...")); - lc->current_call=NULL; if (call->audiostream || call->videostream) linphone_call_stop_media_streams (call); return 0;