- Moved call_peeruri API function back to Api object, since call object

does not exist when peer URI is needed.
This commit is contained in:
Juha Heinanen
2020-05-02 09:58:52 +03:00
parent 365ea34a48
commit d12a9aa2f9
4 changed files with 34 additions and 36 deletions
@@ -556,12 +556,7 @@ class BaresipService: Service() {
return
}
"call incoming" -> {
val call = Call.find(callp)
if (call == null) {
Log.w(LOG_TAG, "Incoming call $callp is not found")
return
}
val peerUri = call.peerUri()
val peerUri = Api.call_peeruri(callp)
if ((Call.calls().size > 0) ||
(tm.callState != TelephonyManager.CALL_STATE_IDLE) ||
!Utils.checkPermission(applicationContext,