application/luci-asterisk:
[project/luci.git] / applications / luci-asterisk / luasrc / model / cbi / asterisk-mod-res.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 res_config_mysql = module:option(ListValue, "res_config_mysql", "MySQL Config Resource", "")
22 res_config_mysql:value("yes", "Load")
23 res_config_mysql:value("no", "Do Not Load")
24 res_config_mysql:value("auto", "Load as Required")
25 res_config_mysql.rmempty = true
26
27 res_config_odbc = module:option(ListValue, "res_config_odbc", "ODBC Config Resource", "")
28 res_config_odbc:value("yes", "Load")
29 res_config_odbc:value("no", "Do Not Load")
30 res_config_odbc:value("auto", "Load as Required")
31 res_config_odbc.rmempty = true
32
33 res_config_pgsql = module:option(ListValue, "res_config_pgsql", "PGSQL Module", "")
34 res_config_pgsql:value("yes", "Load")
35 res_config_pgsql:value("no", "Do Not Load")
36 res_config_pgsql:value("auto", "Load as Required")
37 res_config_pgsql.rmempty = true
38
39 res_crypto = module:option(ListValue, "res_crypto", "Cryptographic Digital Signatures", "")
40 res_crypto:value("yes", "Load")
41 res_crypto:value("no", "Do Not Load")
42 res_crypto:value("auto", "Load as Required")
43 res_crypto.rmempty = true
44
45 res_features = module:option(ListValue, "res_features", "Call Parking Resource", "")
46 res_features:value("yes", "Load")
47 res_features:value("no", "Do Not Load")
48 res_features:value("auto", "Load as Required")
49 res_features.rmempty = true
50
51 res_indications = module:option(ListValue, "res_indications", "Indications Configuration", "")
52 res_indications:value("yes", "Load")
53 res_indications:value("no", "Do Not Load")
54 res_indications:value("auto", "Load as Required")
55 res_indications.rmempty = true
56
57 res_monitor = module:option(ListValue, "res_monitor", "Call Monitoring Resource", "")
58 res_monitor:value("yes", "Load")
59 res_monitor:value("no", "Do Not Load")
60 res_monitor:value("auto", "Load as Required")
61 res_monitor.rmempty = true
62
63 res_musiconhold = module:option(ListValue, "res_musiconhold", "Music On Hold Resource", "")
64 res_musiconhold:value("yes", "Load")
65 res_musiconhold:value("no", "Do Not Load")
66 res_musiconhold:value("auto", "Load as Required")
67 res_musiconhold.rmempty = true
68
69 res_odbc = module:option(ListValue, "res_odbc", "ODBC Resource", "")
70 res_odbc:value("yes", "Load")
71 res_odbc:value("no", "Do Not Load")
72 res_odbc:value("auto", "Load as Required")
73 res_odbc.rmempty = true
74
75 res_smdi = module:option(ListValue, "res_smdi", "SMDI Module", "")
76 res_smdi:value("yes", "Load")
77 res_smdi:value("no", "Do Not Load")
78 res_smdi:value("auto", "Load as Required")
79 res_smdi.rmempty = true
80
81 res_snmp = module:option(ListValue, "res_snmp", "SNMP Module", "")
82 res_snmp:value("yes", "Load")
83 res_snmp:value("no", "Do Not Load")
84 res_snmp:value("auto", "Load as Required")
85 res_snmp.rmempty = true
86
87
88 return cbimap