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)