diff --git a/src/app/Media/VoIPMediaSession.cs b/src/app/Media/VoIPMediaSession.cs index 7fa32a268..de84970d7 100644 --- a/src/app/Media/VoIPMediaSession.cs +++ b/src/app/Media/VoIPMediaSession.cs @@ -210,6 +210,10 @@ public async override Task Start() { await Media.AudioSource.StartAudio().ConfigureAwait(false); } + if (Media.AudioSink != null) + { + await Media.AudioSink.StartAudioSink().ConfigureAwait(false); + } } if (HasVideo) @@ -255,6 +259,11 @@ public async override void Close(string reason) await Media.AudioSource.CloseAudio().ConfigureAwait(false); } + if (Media.AudioSink != null) + { + await Media.AudioSink.CloseAudioSink().ConfigureAwait(false); + } + if (Media.VideoSource != null) { await Media.VideoSource.CloseVideo().ConfigureAwait(false);