Merge pull request #278 from nmav/ocserv
[project/luci.git] / applications / luci-asterisk / luasrc / model / cbi / asterisk-mod-chan.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
19 module = cbimap:section(TypedSection, "module", "Modules", "")
20 module.anonymous = true
21
22 chan_agent = module:option(ListValue, "chan_agent", "Agent Proxy Channel", "")
23 chan_agent:value("yes", "Load")
24 chan_agent:value("no", "Do Not Load")
25 chan_agent:value("auto", "Load as Required")
26 chan_agent.rmempty = true
27
28 chan_alsa = module:option(ListValue, "chan_alsa", "Channel driver for GTalk", "")
29 chan_alsa:value("yes", "Load")
30 chan_alsa:value("no", "Do Not Load")
31 chan_alsa:value("auto", "Load as Required")
32 chan_alsa.rmempty = true
33
34 chan_gtalk = module:option(ListValue, "chan_gtalk", "Channel driver for GTalk", "")
35 chan_gtalk:value("yes", "Load")
36 chan_gtalk:value("no", "Do Not Load")
37 chan_gtalk:value("auto", "Load as Required")
38 chan_gtalk.rmempty = true
39
40 chan_iax2 = module:option(Flag, "chan_iax2", "Option chan_iax2", "")
41 chan_iax2.rmempty = true
42
43 chan_local = module:option(ListValue, "chan_local", "Local Proxy Channel", "")
44 chan_local:value("yes", "Load")
45 chan_local:value("no", "Do Not Load")
46 chan_local:value("auto", "Load as Required")
47 chan_local.rmempty = true
48
49 chan_sip = module:option(ListValue, "chan_sip", "Session Initiation Protocol (SIP)", "")
50 chan_sip:value("yes", "Load")
51 chan_sip:value("no", "Do Not Load")
52 chan_sip:value("auto", "Load as Required")
53 chan_sip.rmempty = true
54
55
56 return cbimap