From d8334cba2dc5276d9376225f70d8aacb42393ea5 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 10 May 2026 17:53:05 +0300 Subject: [PATCH] Improved finding of tel URI's contact --- app/src/main/kotlin/com/tutpro/baresip/Contact.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/Contact.kt b/app/src/main/kotlin/com/tutpro/baresip/Contact.kt index 2333f174..7d1b03e5 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Contact.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Contact.kt @@ -76,9 +76,10 @@ sealed class Contact { fun contactName(uri: String): String { var contact = findContact(uri) if (contact == null) { - val userPart = Utils.uriUserPart(uri) - if (Utils.isTelNumber(userPart)) + val userPart = Utils.uriUserPart(uri).replace("%23", "#") + if (Utils.isTelNumber(userPart)) { contact = findContact("tel:$userPart") + } } if (contact != null) return contact.name()