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