More speakerphone and call related enhancements for API 31+

This commit is contained in:
Juha Heinanen
2023-01-24 05:37:56 +02:00
parent afd26f7df9
commit 5195a24d08
4 changed files with 103 additions and 43 deletions
@@ -112,5 +112,11 @@ class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir: Str
return null
}
fun connectedCall(): Call? {
for (c in BaresipService.calls.reversed())
if (c.status == "connected") return c
return null
}
}
}