From bdf6280cf0be864521df046bccc97eafb74a32f3 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Fri, 23 Feb 2024 22:38:05 -0500 Subject: [PATCH] Voicemail timeout field improvements The -1 thing is pretty outdated, we have a voicemail disable for that now. Realistic range is 0 (instant voicemail) to 300 (bandwidth's max which we impose in the code anyway). --- forms/configure_calls.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forms/configure_calls.rb b/forms/configure_calls.rb index 3c0eeab48406e8cd5c1e564ae1a412da7bf33fcd..3bf4608d930ebf4a1a9b1c2eb788be53dc4e6371 100644 --- a/forms/configure_calls.rb +++ b/forms/configure_calls.rb @@ -14,8 +14,9 @@ if @customer.fwd.voicemail_enabled? type: "text-single", datatype: "xs:integer", label: "Seconds to ring before voicemail", - description: "One ring is ~5 seconds. -1 means ring forever.", - value: @customer.fwd.timeout.to_i.to_s + description: "One ring is ~5 seconds", + value: @customer.fwd.timeout.to_i.to_s, + range: (0..300) ) field(