Fixed error that sometimes caused two mobile accounts to appear after restart

This commit is contained in:
Juha Heinanen
2026-08-16 20:21:49 +03:00
parent 70a6868606
commit 3c19160bcb

View File

@ -154,6 +154,7 @@ object Utils {
fun uriMatch(firstUri: String, secondUri: String): Boolean { fun uriMatch(firstUri: String, secondUri: String): Boolean {
val first = uriUnescape(firstUri.removePrefix("<").removeSuffix(">")) val first = uriUnescape(firstUri.removePrefix("<").removeSuffix(">"))
val second = uriUnescape(secondUri.removePrefix("<").removeSuffix(">")) val second = uriUnescape(secondUri.removePrefix("<").removeSuffix(">"))
if (first.equals(second, ignoreCase = true)) return true
val mobileAor = "sip:mobile@pstn" val mobileAor = "sip:mobile@pstn"
if (first.startsWith("tel:", ignoreCase = true)) { if (first.startsWith("tel:", ignoreCase = true)) {
if (first.equals(second, ignoreCase = true)) return true if (first.equals(second, ignoreCase = true)) return true