public bool AcceptCall() { bool result = false; var call = LinphoneCore.CurrentCall; if (call != null && (call.State == CallState.IncomingReceived || call.State == CallState.IncomingEarlyMedia)) { LinphoneCore.AcceptCall(call); result = true; } else { try { linphoneCore.AcceptCall(LastCall); } catch { } } return(result); }