Call transfer improvements

This commit is contained in:
Juha Heinanen
2020-08-28 18:21:17 +03:00
parent 1bb84a9278
commit 797cac0c0f
4 changed files with 47 additions and 30 deletions
@@ -754,9 +754,15 @@ class BaresipService: Service() {
}
if (!Utils.isVisible()) return
}
"transfer failed" -> {
"refer failed" -> {
Log.d(LOG_TAG, "AoR $aor hanging up call $callp with ${ev[1]}")
Api.ua_hangup(uap, callp, 0, "")
val call = Call.ofCallp(callp)
if (call == null) {
Log.w(LOG_TAG, "Call $callp with failed refer is not found")
} else {
call.referTo = ""
}
if (!Utils.isVisible()) return
}
}