- Added Call remove() method.
This commit is contained in:
@ -731,7 +731,7 @@ class BaresipService: Service() {
|
||||
}
|
||||
Log.d(LOG_TAG, "AoR $aor call $callp is closed")
|
||||
stopRinging()
|
||||
calls.remove(call)
|
||||
call.remove()
|
||||
if (Call.calls().size == 0) {
|
||||
resetCallVolume()
|
||||
if (am.mode != AudioManager.MODE_NORMAL)
|
||||
|
||||
@ -15,6 +15,10 @@ class Call(val callp: String, val ua: UserAgent, val peerURI: String, val dir: S
|
||||
BaresipService.calls.add(this)
|
||||
}
|
||||
|
||||
fun remove() {
|
||||
BaresipService.calls.remove(this)
|
||||
}
|
||||
|
||||
fun connect(uri: String): Int {
|
||||
return call_connect(callp, uri)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user