From 9ef749ec41f1038404be7754f8f9abee8a56cac3 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Fri, 3 Apr 2026 16:48:14 +0300 Subject: [PATCH] Removed comments --- app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt b/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt index 1329ea8a..31998163 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt @@ -58,13 +58,10 @@ class ConnectionService : ConnectionService() { val ua = UserAgent.ofUap(uap) if (ua != null) { - // Check speakerphone setting if (BaresipService.speakerPhone) { @Suppress("DEPRECATION") connection.setAudioRoute(CallAudioState.ROUTE_SPEAKER) } - - // Check for Auto-Answer if (ua.account.answerMode == Api.ANSWERMODE_AUTO) { Log.d(TAG, "Auto-answering call $callp") connection.onAnswer() @@ -90,7 +87,6 @@ class ConnectionService : ConnectionService() { val rootExtras = request?.extras val nestedExtras = rootExtras?.getBundle(TelecomManager.EXTRA_OUTGOING_CALL_EXTRAS) - // Try root extras first, then fallback to nested val uap = rootExtras?.getLong("uap", 0L).takeIf { it != 0L } ?: nestedExtras?.getLong("uap") ?: 0L