From 572c38c0cc8dd82b28f1edf3bf15ddc6afcf2752 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Fri, 8 May 2020 09:48:01 +0300 Subject: [PATCH] - One more Call add() usage. --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index af625db2..97472eea 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -572,8 +572,8 @@ class BaresipService: Service() { newEvent = "call rejected" } else { Log.d(LOG_TAG, "Incoming call $uap/$callp/$peerUri") - calls.add(Call(callp, ua, peerUri, "in", "incoming", - Utils.dtmfWatcher(callp))) + Call(callp, ua, peerUri, "in", "incoming", + Utils.dtmfWatcher(callp)).add() if (ua.account.answerMode == "manual") { if (Build.VERSION.SDK_INT >= 23) { Log.d(LOG_TAG, "CurrentInterruptionFilter ${nm.currentInterruptionFilter}")