From ab41327e003c42d8737656c878f4f71d928bb8f7 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 13 Oct 2015 11:13:33 +0200 Subject: [PATCH] check for dead calls also in PausedByRemote state --- coreapi/linphonecall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index b049f7ef8..652b2f08d 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -4366,7 +4366,8 @@ void linphone_call_background_tasks(LinphoneCall *call, bool_t one_second_elapse linphone_call_handle_stream_events(call, call->main_audio_stream_index); linphone_call_handle_stream_events(call, call->main_video_stream_index); linphone_call_handle_stream_events(call, call->main_text_stream_index); - if (call->state==LinphoneCallStreamsRunning && one_second_elapsed && call->audiostream!=NULL + if ((call->state == LinphoneCallStreamsRunning || + call->state == LinphoneCallPausedByRemote) && one_second_elapsed && call->audiostream!=NULL && call->audiostream->ms.state==MSStreamStarted && disconnect_timeout>0 ) disconnected=!audio_stream_alive(call->audiostream,disconnect_timeout); if (disconnected)