Commit adbb86b7 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Decline incoming call if already on a call

parent e43bd837
......@@ -117,6 +117,12 @@ class CoreContext(val context: Context, coreConfig: Config) {
) {
Log.i("[Context] Call state changed [$state]")
if (state == Call.State.IncomingReceived) {
if (state == Call.State.IncomingReceived && core.callsNb > 1) {
if (gsmCallActive) {
Log.w("[Context] Refusing the call with reason busy because a GSM call is active")
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