* luci/app/asterisk: add initial cbi definitions, needs cleanup
[project/luci.git] / applications / luci-asterisk / luasrc / model / cbi / asterisk-mod-format.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 format_au = module:option(ListValue, "format_au", "Sun Microsystems AU format (signed linear)", "")
22 format_au:value("yes", "Load")
23 format_au:value("no", "Do Not Load")
24 format_au:value("auto", "Load as Required")
25 format_au.rmempty = true
26
27 format_g723 = module:option(ListValue, "format_g723", "G.723.1 Simple Timestamp File Format", "")
28 format_g723:value("yes", "Load")
29 format_g723:value("no", "Do Not Load")
30 format_g723:value("auto", "Load as Required")
31 format_g723.rmempty = true
32
33 format_g726 = module:option(ListValue, "format_g726", "Raw G.726 (16/24/32/40kbps) data", "")
34 format_g726:value("yes", "Load")
35 format_g726:value("no", "Do Not Load")
36 format_g726:value("auto", "Load as Required")
37 format_g726.rmempty = true
38
39 format_g729 = module:option(ListValue, "format_g729", "Raw G729 data", "")
40 format_g729:value("yes", "Load")
41 format_g729:value("no", "Do Not Load")
42 format_g729:value("auto", "Load as Required")
43 format_g729.rmempty = true
44
45 format_gsm = module:option(ListValue, "format_gsm", "Raw GSM data", "")
46 format_gsm:value("yes", "Load")
47 format_gsm:value("no", "Do Not Load")
48 format_gsm:value("auto", "Load as Required")
49 format_gsm.rmempty = true
50
51 format_h263 = module:option(ListValue, "format_h263", "Raw h263 data", "")
52 format_h263:value("yes", "Load")
53 format_h263:value("no", "Do Not Load")
54 format_h263:value("auto", "Load as Required")
55 format_h263.rmempty = true
56
57 format_jpeg = module:option(ListValue, "format_jpeg", "JPEG (Joint Picture Experts Group) Image", "")
58 format_jpeg:value("yes", "Load")
59 format_jpeg:value("no", "Do Not Load")
60 format_jpeg:value("auto", "Load as Required")
61 format_jpeg.rmempty = true
62
63 format_pcm = module:option(ListValue, "format_pcm", "Raw uLaw 8khz Audio support (PCM)", "")
64 format_pcm:value("yes", "Load")
65 format_pcm:value("no", "Do Not Load")
66 format_pcm:value("auto", "Load as Required")
67 format_pcm.rmempty = true
68
69 format_pcm_alaw = module:option(ListValue, "format_pcm_alaw", "load => .so ; Raw aLaw 8khz PCM Audio support", "")
70 format_pcm_alaw:value("yes", "Load")
71 format_pcm_alaw:value("no", "Do Not Load")
72 format_pcm_alaw:value("auto", "Load as Required")
73 format_pcm_alaw.rmempty = true
74
75 format_sln = module:option(ListValue, "format_sln", "Raw Signed Linear Audio support (SLN)", "")
76 format_sln:value("yes", "Load")
77 format_sln:value("no", "Do Not Load")
78 format_sln:value("auto", "Load as Required")
79 format_sln.rmempty = true
80
81 format_vox = module:option(ListValue, "format_vox", "Dialogic VOX (ADPCM) File Format", "")
82 format_vox:value("yes", "Load")
83 format_vox:value("no", "Do Not Load")
84 format_vox:value("auto", "Load as Required")
85 format_vox.rmempty = true
86
87 format_wav = module:option(ListValue, "format_wav", "Microsoft WAV format (8000hz Signed Line", "")
88 format_wav:value("yes", "Load")
89 format_wav:value("no", "Do Not Load")
90 format_wav:value("auto", "Load as Required")
91 format_wav.rmempty = true
92
93 format_wav_gsm = module:option(ListValue, "format_wav_gsm", "Microsoft WAV format (Proprietary GSM)", "")
94 format_wav_gsm:value("yes", "Load")
95 format_wav_gsm:value("no", "Do Not Load")
96 format_wav_gsm:value("auto", "Load as Required")
97 format_wav_gsm.rmempty = true
98
99
100 return cbimap