projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* luci/app/asterisk: more work on cbi models
[project/luci.git]
/
applications
/
luci-asterisk
/
luasrc
/
model
/
cbi
/
asterisk-voice.lua
diff --git
a/applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua
b/applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua
index
117a11d
..
af02595
100644
(file)
--- a/
applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua
+++ b/
applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua
@@
-16,14
+16,12
@@
$Id$
cbimap = Map("asterisk", "asterisk", "")
voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "")
cbimap = Map("asterisk", "asterisk", "")
voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "")
-voicegeneral.anonymous = true
-voicegeneral.addremove = true
serveremail = voicegeneral:option(Value, "serveremail", "From Email address of server", "")
serveremail = voicegeneral:option(Value, "serveremail", "From Email address of server", "")
-serveremail.rmempty = true
voicemail = cbimap:section(TypedSection, "voicemail", "Voice Mail boxes", "")
voicemail = cbimap:section(TypedSection, "voicemail", "Voice Mail boxes", "")
+voicemail.addremove = true
attach = voicemail:option(Flag, "attach", "Email contains attachment", "")
attach.rmempty = true
attach = voicemail:option(Flag, "attach", "Email contains attachment", "")
attach.rmempty = true
@@
-37,8
+35,8
@@
name.rmempty = true
password = voicemail:option(Value, "password", "Password", "")
password.rmempty = true
password = voicemail:option(Value, "password", "Password", "")
password.rmempty = true
-zone = voicemail:option(
Value, "zone", "
", "")
-zone.rmempty = true
+zone = voicemail:option(
ListValue, "zone", "Voice Zone
", "")
+cbimap.uci:foreach( "asterisk", "voicezone", function(s) zone:value(s['.name']) end )
voicezone = cbimap:section(TypedSection, "voicezone", "Voice Zone settings", "")
voicezone = cbimap:section(TypedSection, "voicezone", "Voice Zone settings", "")