Globally reduce copyright headers
[project/luci.git] / applications / luci-app-asterisk / luasrc / model / cbi / asterisk / voicemail_settings.lua
1 -- Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 require "luci.sys.zoneinfo"
5
6
7 cbimap = Map("asterisk", "Voicemail - Common Settings")
8
9 voicegeneral = cbimap:section(TypedSection, "voicegeneral",
10         "General Voicemail Options", "Common settings for all mailboxes are " ..
11         "defined here. Most of them are optional. The storage format should " ..
12         "never be changed once set.")
13
14 voicegeneral.anonymous = true
15 voicegeneral.addremove = false
16
17 format = voicegeneral:option(MultiValue, "Used storage formats")
18 format.widget = "checkbox"
19 format:value("wav49")
20 format:value("gsm")
21 format:value("wav")
22
23 voicegeneral:option(Flag, "sendvoicemail", "Enable sending of emails")
24 voicegeneral:option(Flag, "attach", "Attach voice messages to emails")
25 voicegeneral:option(Value, "serveremail", "Used email sender address")
26 voicegeneral:option(Value, "emaildateformat", "Date format used in emails").optional = true
27 voicegeneral:option(Value, "maxlogins", "Max. failed login attempts").optional = true
28 voicegeneral:option(Value, "maxmsg", "Max. allowed messages per mailbox").optional = true
29 voicegeneral:option(Value, "minmessage", "Min. number of seconds for voicemail").optional = true
30 voicegeneral:option(Value, "maxmessage", "Max. number of seconds for voicemail").optional = true
31 voicegeneral:option(Value, "maxsilence", "Seconds of silence until stop recording").optional = true
32 voicegeneral:option(Value, "maxgreet", "Max. number of seconds for greetings").optional = true
33 voicegeneral:option(Value, "skipms", "Milliseconds to skip for rew./ff.").optional = true
34 voicegeneral:option(Value, "silencethreshold", "Threshold to detect silence").optional = true
35
36
37 voicezone = cbimap:section(TypedSection, "voicezone", "Time Zones",
38         "Time zones define how dates and times are expressen when used in " ..
39         "an voice mails. Refer to the asterisk manual for placeholder values.")
40
41 voicezone.addremove = true
42 voicezone.sectionhead = "Name"
43 voicezone.template = "cbi/tblsection"
44
45 tz = voicezone:option(ListValue, "zone", "Location")
46 for _, z in ipairs(luci.sys.zoneinfo.TZ) do tz:value(z[1]) end
47
48 voicezone:option(Value, "message", "Date Format")
49
50
51 return cbimap