Prompt user for telephony provider account if such is needed to make the call
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user