Synched adding and removing of calls
This commit is contained in:
@@ -1990,7 +1990,9 @@ class BaresipService: Service() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
calls.add(call)
|
synchronized(calls) {
|
||||||
|
calls.add(call)
|
||||||
|
}
|
||||||
setCallVolume()
|
setCallVolume()
|
||||||
ensureCommunicationMode()
|
ensureCommunicationMode()
|
||||||
|
|
||||||
@@ -2028,7 +2030,9 @@ class BaresipService: Service() {
|
|||||||
if (call.dir == "in" && call.startTime == null && !call.rejected)
|
if (call.dir == "in" && call.startTime == null && !call.rejected)
|
||||||
call.ua.account.missedCalls = true
|
call.ua.account.missedCalls = true
|
||||||
}
|
}
|
||||||
calls.remove(call)
|
synchronized(calls) {
|
||||||
|
calls.remove(call)
|
||||||
|
}
|
||||||
postServiceEvent(
|
postServiceEvent(
|
||||||
ServiceEvent(
|
ServiceEvent(
|
||||||
"call closed", arrayListOf(uap, callp), System.nanoTime()
|
"call closed", arrayListOf(uap, callp), System.nanoTime()
|
||||||
|
|||||||
Reference in New Issue
Block a user