Allow perticipant to hold/unhold from/to conference call
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user