Code style Call.kt

This commit is contained in:
Juha Heinanen
2026-07-06 14:31:04 +03:00
parent 161d73101a
commit 64bc5bd807

View File

@ -78,12 +78,11 @@ open class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir
open fun resume(): Boolean {
if (!onhold && !held) return true
// 1. Hold other calls first
for (c in BaresipService.calls) {
for (c in BaresipService.calls)
if (c.callp != this.callp && !c.onhold && !c.held) {
Log.d("Baresip", "Auto-holding active call ${c.callp}")
c.hold()
}
}
val connection = ConnectionService.connections[callp]
// 2. SIP Signaling
if (Api.call_hold(callp, false)) {