- Ask authentication password at baresip start if authentication username is

given in account configuration, but password is not.
This commit is contained in:
Juha Heinanen
2020-03-19 07:59:54 +02:00
parent 0109c80402
commit 0be59ce6d4
8 changed files with 140 additions and 18 deletions
@@ -97,6 +97,12 @@ object Utils {
return if (domain == aor) "" else domain
}
fun plainAor(aor: String): String {
return aor.substringAfter(":").substringBefore("@") + "@" +
aor.substringAfter("@").substringBefore(";")
.substringBefore(":")
}
fun checkAor(aor: String): Boolean {
val p = aor.split(":")
if (p.size == 2)