Commit eec96fd8 authored by Sylvain Berfini's avatar Sylvain Berfini

Decline incoming calls if received while going into background

parent 645798b5
......@@ -219,6 +219,14 @@ namespace Linphone.Model
// Cancel any incoming call
if (LinphoneCore.GetCallsNb() == 1)
LinphoneCall call = (LinphoneCall)LinphoneCore.GetCalls()[0];
if (call.GetState() == LinphoneCallState.IncomingReceived)
BackgroundProcessConnected = false;
isLinphoneRunning = false;
Debug.WriteLine("[LinphoneManager] Background process disconnected from interface");
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