applications/luci-asterisk: fix voicemail storage option, don't load tzdata in mailbo...
[project/luci.git] / applications / luci-asterisk / luasrc / model / cbi / asterisk / voicemail.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 cbimap = Map("asterisk", "Voicemail - Mailboxes")
16
17 voicemail = cbimap:section(TypedSection, "voicemail", "Voicemail Boxes")
18 voicemail.addremove = true
19 voicemail.anonymous = true
20 voicemail.template = "cbi/tblsection"
21
22 context = voicemail:option(ListValue, "context", "Context")
23 context:value("default")
24
25 voicemail:option(Value, "number", "Mailbox Number", "Unique mailbox identifier")
26 voicemail:option(Value, "name", "Ownername", "Human readable display name")
27 voicemail:option(Value, "password", "Password", "Access protection")
28 voicemail:option(Value, "email", "eMail", "Where to send voice messages")
29 voicemail:option(Value, "page", "Pager", "Pager number")
30
31 zone = voicemail:option(ListValue, "zone", "Timezone", "Used time format")
32 zone.titleref = luci.dispatcher.build_url("admin/asterisk/voicemail/settings")
33 cbimap.uci:foreach("asterisk", "voicezone",
34         function(s) zone:value(s['.name']) end)
35
36
37 return cbimap