117a11d55e2e0951f9f4b0e8cc6d086931946603
[project/luci.git] / applications / luci-asterisk / luasrc / model / cbi / asterisk-voice.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14 ]]--
15
16 cbimap = Map("asterisk", "asterisk", "")
17
18 voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "")
19 voicegeneral.anonymous = true
20 voicegeneral.addremove = true
21
22 serveremail = voicegeneral:option(Value, "serveremail", "From Email address of server", "")
23 serveremail.rmempty = true
24
25
26 voicemail = cbimap:section(TypedSection, "voicemail", "Voice Mail boxes", "")
27
28 attach = voicemail:option(Flag, "attach", "Email contains attachment", "")
29 attach.rmempty = true
30
31 email = voicemail:option(Value, "email", "Email", "")
32 email.rmempty = true
33
34 name = voicemail:option(Value, "name", "Display Name", "")
35 name.rmempty = true
36
37 password = voicemail:option(Value, "password", "Password", "")
38 password.rmempty = true
39
40 zone = voicemail:option(Value, "zone", "", "")
41 zone.rmempty = true
42
43
44 voicezone = cbimap:section(TypedSection, "voicezone", "Voice Zone settings", "")
45 voicezone.addremove = true
46
47 message = voicezone:option(Value, "message", "Message Format", "")
48 message.rmempty = true
49
50 zone = voicezone:option(Value, "zone", "Time Zone", "")
51 zone.rmempty = true
52
53
54 return cbimap