From 366b6ed5a870f66690859ee7698dd4ec4d1e58dd Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sat, 21 Sep 2024 10:38:47 +0300 Subject: [PATCH] Allow , and # characters in tel number (for example when calling Teams) --- app/src/main/kotlin/com/tutpro/baresip/Utils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt index 7a162630..cee67752 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt @@ -331,7 +331,7 @@ object Utils { } fun isTelNumber(no: String): Boolean { - return no.isNotEmpty() && Regex("^([+][1-9])?[0-9- ()]{0,20}\$").matches(no) + return no.isNotEmpty() && Regex("^([+][1-9])?[0-9- (),#]{0,24}\$").matches(no) } fun isTelUri(uri: String): Boolean {