Update my email addresses in the license headers
[project/luci.git] / applications / luci-app-asterisk / luasrc / model / cbi / asterisk-voice.lua
1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
3 -- Licensed to the public under the Apache License 2.0.
4
5 cbimap = Map("asterisk", "asterisk", "")
6
7 voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "")
8
9 serveremail = voicegeneral:option(Value, "serveremail", "From Email address of server", "")
10
11
12 voicemail = cbimap:section(TypedSection, "voicemail", "Voice Mail boxes", "")
13 voicemail.addremove = true
14
15 attach = voicemail:option(Flag, "attach", "Email contains attachment", "")
16 attach.rmempty = true
17
18 email = voicemail:option(Value, "email", "Email", "")
19 email.rmempty = true
20
21 name = voicemail:option(Value, "name", "Display Name", "")
22 name.rmempty = true
23
24 password = voicemail:option(Value, "password", "Password", "")
25 password.rmempty = true
26
27 zone = voicemail:option(ListValue, "zone", "Voice Zone", "")
28 cbimap.uci:foreach( "asterisk", "voicezone", function(s) zone:value(s['.name']) end )
29
30
31 voicezone = cbimap:section(TypedSection, "voicezone", "Voice Zone settings", "")
32 voicezone.addremove = true
33
34 message = voicezone:option(Value, "message", "Message Format", "")
35 message.rmempty = true
36
37 zone = voicezone:option(Value, "zone", "Time Zone", "")
38 zone.rmempty = true
39
40
41 return cbimap