Added call transfer capability.

This commit is contained in:
Juha Heinanen
2020-08-23 15:48:55 +03:00
parent 035f89c2ee
commit b1ff3ecc0e
8 changed files with 120 additions and 18 deletions
@@ -695,7 +695,7 @@ class BaresipService: Service() {
.setContentIntent(pi)
.setDefaults(Notification.DEFAULT_SOUND)
.setAutoCancel(true)
.setContentTitle(getString(R.string.transfer_request))
.setContentTitle(getString(R.string.transfer_request_to))
.setContentText(target)
if (Build.VERSION.SDK_INT < 26) {
nb.setVibrate(LongArray(0))
@@ -757,7 +757,7 @@ class BaresipService: Service() {
"transfer failed" -> {
Log.d(LOG_TAG, "AoR $aor hanging up call $callp with ${ev[1]}")
Api.ua_hangup(uap, callp, 0, "")
return
if (!Utils.isVisible()) return
}
}
}