Update my email addresses in the license headers
[project/luci.git] / applications / luci-app-asterisk / luasrc / model / cbi / asterisk-mod-chan.lua
1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
3 -- Licensed to the public under the Apache License 2.0.
4
5 cbimap = Map("asterisk", "asterisk", "")
6
7
8 module = cbimap:section(TypedSection, "module", "Modules", "")
9 module.anonymous = true
10
11 chan_agent = module:option(ListValue, "chan_agent", "Agent Proxy Channel", "")
12 chan_agent:value("yes", "Load")
13 chan_agent:value("no", "Do Not Load")
14 chan_agent:value("auto", "Load as Required")
15 chan_agent.rmempty = true
16
17 chan_alsa = module:option(ListValue, "chan_alsa", "Channel driver for GTalk", "")
18 chan_alsa:value("yes", "Load")
19 chan_alsa:value("no", "Do Not Load")
20 chan_alsa:value("auto", "Load as Required")
21 chan_alsa.rmempty = true
22
23 chan_gtalk = module:option(ListValue, "chan_gtalk", "Channel driver for GTalk", "")
24 chan_gtalk:value("yes", "Load")
25 chan_gtalk:value("no", "Do Not Load")
26 chan_gtalk:value("auto", "Load as Required")
27 chan_gtalk.rmempty = true
28
29 chan_iax2 = module:option(Flag, "chan_iax2", "Option chan_iax2", "")
30 chan_iax2.rmempty = true
31
32 chan_local = module:option(ListValue, "chan_local", "Local Proxy Channel", "")
33 chan_local:value("yes", "Load")
34 chan_local:value("no", "Do Not Load")
35 chan_local:value("auto", "Load as Required")
36 chan_local.rmempty = true
37
38 chan_sip = module:option(ListValue, "chan_sip", "Session Initiation Protocol (SIP)", "")
39 chan_sip:value("yes", "Load")
40 chan_sip:value("no", "Do Not Load")
41 chan_sip:value("auto", "Load as Required")
42 chan_sip.rmempty = true
43
44
45 return cbimap