From 93b5c54073ffb13e9170b3a521f720cb0dba2c15 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Thu, 31 Oct 2019 13:43:08 +0200 Subject: [PATCH] - Fixed checking if account already eixts. --- app/src/main/kotlin/com/tutpro/baresip/Account.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/Account.kt b/app/src/main/kotlin/com/tutpro/baresip/Account.kt index a0acdbf4..8f40a073 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Account.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Account.kt @@ -200,7 +200,7 @@ class Account(val accp: String) { fun exists(aor: String): Boolean { for (ua in UserAgent.uas()) { - if (ua.account.aor == aor) return true + if (ua.account.aor == "sip:$aor") return true } return false }