X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-asterisk%2Fluasrc%2Fmodel%2Fcbi%2Fasterisk-voice.lua;h=af0259549ad2729b34dc7f5aba0fe3471b21264f;hp=117a11d55e2e0951f9f4b0e8cc6d086931946603;hb=406400a198a073c54a02eaf3583f26cdab6691bc;hpb=b601dd75c1f3aa72855a65a625892ed4c8088533 diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua index 117a11d55..af0259549 100644 --- 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", "") -voicegeneral.anonymous = true -voicegeneral.addremove = true serveremail = voicegeneral:option(Value, "serveremail", "From Email address of server", "") -serveremail.rmempty = true voicemail = cbimap:section(TypedSection, "voicemail", "Voice Mail boxes", "") +voicemail.addremove = 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 -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", "")