diff --git a/app/src/main/kotlin/com/tutpro/baresip/AccountScreen.kt b/app/src/main/kotlin/com/tutpro/baresip/AccountScreen.kt index febd70cc..e9349102 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/AccountScreen.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/AccountScreen.kt @@ -1539,7 +1539,11 @@ private fun initAccountFromConfig(acc: Account, onConfigLoaded: () -> Unit) { acc.outbound.add(text) "registration-interval" -> - acc.configuredRegInt = text.toInt() + acc.configuredRegInt = try { + text.toInt() + } catch (_: NumberFormatException) { + 900 + } "register" -> acc.regint = if (text == "yes") acc.configuredRegInt else 0