Rework LuCI build system
[project/luci.git] / applications / luci-app-asterisk / luasrc / model / cbi / asterisk-mod-func.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 module = cbimap:section(TypedSection, "module", "Modules", "")
19 module.anonymous = true
20
21 func_callerid = module:option(ListValue, "func_callerid", "Caller ID related dialplan functions", "")
22 func_callerid:value("yes", "Load")
23 func_callerid:value("no", "Do Not Load")
24 func_callerid:value("auto", "Load as Required")
25 func_callerid.rmempty = true
26
27 func_enum = module:option(ListValue, "func_enum", "ENUM Functions", "")
28 func_enum:value("yes", "Load")
29 func_enum:value("no", "Do Not Load")
30 func_enum:value("auto", "Load as Required")
31 func_enum.rmempty = true
32
33 func_uri = module:option(ListValue, "func_uri", "URI encoding / decoding functions", "")
34 func_uri:value("yes", "Load")
35 func_uri:value("no", "Do Not Load")
36 func_uri:value("auto", "Load as Required")
37 func_uri.rmempty = true
38
39
40 return cbimap