Allow perticipant to hold/unhold from/to conference call

This commit is contained in:
Juha Heinanen
2026-04-21 12:01:07 +03:00
parent 619cd51fcf
commit dddc8a22f6

View File

@ -888,16 +888,11 @@ class BaresipService: Service() {
return
}
"call update" -> {
if (call!!.conferenceCall) {
Log.d(TAG, "Refusing to update conference call ${call.callp}")
Api.bevent_stop(ev[2].toLong())
return
}
val newHeldState = when (ev[1].toInt()) {Api.SDP_INACTIVE, Api.SDP_RECVONLY -> true
else -> false
}
val connection = ConnectionService.connections[callp]
if (call.held && !newHeldState) {
if (call!!.held && !newHeldState) {
Log.d(TAG, "Call ${call.callp} un-held by peer.")
call.onhold = false
// Use a Coroutine with a small delay to let the SIP