Prompt user for telephony provider account if such is needed to make the call

This commit is contained in:
Juha Heinanen
2022-02-03 11:45:05 +02:00
parent af11b18bd7
commit 5cf189a06a
4 changed files with 29 additions and 28 deletions
@@ -198,6 +198,14 @@ class Account(val accp: String) {
return res
}
fun telProviderAccounts(): Array<String> {
val res = ArrayList<String>()
for (account in accounts())
if (account.telProvider != "")
res.add(account.aor.substring(4))
return res.toTypedArray()
}
fun ofAor(aor: String): Account? {
for (ua in UserAgent.uas())
if (ua.account.aor == aor) return ua.account