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 return
} }
"call update" -> { "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 val newHeldState = when (ev[1].toInt()) {Api.SDP_INACTIVE, Api.SDP_RECVONLY -> true
else -> false else -> false
} }
val connection = ConnectionService.connections[callp] val connection = ConnectionService.connections[callp]
if (call.held && !newHeldState) { if (call!!.held && !newHeldState) {
Log.d(TAG, "Call ${call.callp} un-held by peer.") Log.d(TAG, "Call ${call.callp} un-held by peer.")
call.onhold = false call.onhold = false
// Use a Coroutine with a small delay to let the SIP // Use a Coroutine with a small delay to let the SIP