enable:value("no", translate("No"))
enable.default = "no"
-timeout = s:option(Value, "global_timeout",
- translate("Timeout before sending callers to voicemail"))
-timeout:depends("enabled", "yes")
-timeout.default = 30
-
emails = s:option(DynamicList, "global_email_addresses",
- translate("Email addresses to forward to"))
+ translate("Email addresses to forward voicemail to"))
emails:depends("enabled", "yes")
savepath = s:option(Value, "global_save_path", translate("Directory to save voicemail into"),
You can also set up a GMail, Yahoo, or other 3rd party SMTP server."))
s.anonymous = true
-serv = s:option(Value, "smtp_server", translate("SMTP server hostname or IP"))
+serv = s:option(Value, "smtp_server", translate("SMTP server hostname or IP address"))
serv.datatype = "host"
port = s:option(Value, "smtp_port", translate("SMTP port number"))
port.datatype = "port"
port.default = "25"
-tls = s:option(ListValue, "smtp_tls", translate("Use TLS (secure connection)"))
+tls = s:option(ListValue, "smtp_tls", translate("Secure connection using TLS"))
tls:value("on", translate("Yes"))
tls:value("off", translate("No"))
tls.default = "on"
value = self.map:get(section, self.option)
if value == nil then
- return {translate("Rings all users enabled for incoming calls")}
+ return {translate("All users enabled for incoming calls")}
else
return value
end
value = self.map:get(section, self.option)
if value == nil then
- return {translate("Uses all providers enabled for outgoing calls")}
+ return {translate("All providers enabled for outgoing calls")}
else
newvalue = {}
-- Convert internal names to user@host values.
config_get enabled global_voicemail enabled
# First check if voicemail is enabled.
- [ "$enabled" != "yes" ] && exit
+ [ "$enabled" != "yes" ] && return
config_get global_timeout global_voicemail global_timeout
#config_get global_email_addresses global_voicemail global_email_addresses
pbx_cook_sip_template
pbx_cook_rtp_template
- # Prepare sip.conf using settings from the "advanced" section.
+ # Prepare voicemail config.
config_unset
config_load ${MODULENAME}-voicemail
pbx_configure_voicemail