1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
3 -- Licensed to the public under the Apache License 2.0.
5 cbimap = Map("asterisk", "asterisk", "")
7 asterisk = cbimap:section(TypedSection, "asterisk", "Asterisk General Options", "")
8 asterisk.anonymous = true
10 agidir = asterisk:option(Value, "agidir", "AGI directory", "")
13 cache_record_files = asterisk:option(Flag, "cache_record_files", "Cache recorded sound files during recording", "")
14 cache_record_files.rmempty = true
16 debug = asterisk:option(Value, "debug", "Debug Level", "")
19 dontwarn = asterisk:option(Flag, "dontwarn", "Disable some warnings", "")
20 dontwarn.rmempty = true
22 dumpcore = asterisk:option(Flag, "dumpcore", "Dump core on crash", "")
23 dumpcore.rmempty = true
25 highpriority = asterisk:option(Flag, "highpriority", "High Priority", "")
26 highpriority.rmempty = true
28 initcrypto = asterisk:option(Flag, "initcrypto", "Initialise Crypto", "")
29 initcrypto.rmempty = true
31 internal_timing = asterisk:option(Flag, "internal_timing", "Use Internal Timing", "")
32 internal_timing.rmempty = true
34 logdir = asterisk:option(Value, "logdir", "Log directory", "")
37 maxcalls = asterisk:option(Value, "maxcalls", "Maximum number of calls allowed", "")
38 maxcalls.rmempty = true
40 maxload = asterisk:option(Value, "maxload", "Maximum load to stop accepting new calls", "")
41 maxload.rmempty = true
43 nocolor = asterisk:option(Flag, "nocolor", "Disable console colors", "")
44 nocolor.rmempty = true
46 record_cache_dir = asterisk:option(Value, "record_cache_dir", "Sound files Cache directory", "")
47 record_cache_dir.rmempty = true
48 record_cache_dir:depends({ ["cache_record_files"] = "true" })
50 rungroup = asterisk:option(Flag, "rungroup", "The Group to run as", "")
51 rungroup.rmempty = true
53 runuser = asterisk:option(Flag, "runuser", "The User to run as", "")
54 runuser.rmempty = true
56 spooldir = asterisk:option(Value, "spooldir", "Voicemail Spool directory", "")
57 spooldir.rmempty = true
59 systemname = asterisk:option(Value, "systemname", "Prefix UniquID with system name", "")
60 systemname.rmempty = true
62 transcode_via_sln = asterisk:option(Flag, "transcode_via_sln", "Build transcode paths via SLINEAR, not directly", "")
63 transcode_via_sln.rmempty = true
65 transmit_silence_during_record = asterisk:option(Flag, "transmit_silence_during_record", "Transmit SLINEAR silence while recording a channel", "")
66 transmit_silence_during_record.rmempty = true
68 verbose = asterisk:option(Value, "verbose", "Verbose Level", "")
69 verbose.rmempty = true
71 zone = asterisk:option(Value, "zone", "Time Zone", "")
75 hardwarereboot = cbimap:section(TypedSection, "hardwarereboot", "Reload Hardware Config", "")
77 method = hardwarereboot:option(ListValue, "method", "Reboot Method", "")
78 method:value("web", "Web URL (wget)")
79 method:value("system", "program to run")
82 param = hardwarereboot:option(Value, "param", "Parameter", "")
86 iaxgeneral = cbimap:section(TypedSection, "iaxgeneral", "IAX General Options", "")
87 iaxgeneral.anonymous = true
88 iaxgeneral.addremove = true
90 allow = iaxgeneral:option(MultiValue, "allow", "Allow Codecs", "")
91 allow:value("alaw", "alaw")
92 allow:value("gsm", "gsm")
93 allow:value("g726", "g726")
96 canreinvite = iaxgeneral:option(ListValue, "canreinvite", "Reinvite/redirect media connections", "")
97 canreinvite:value("yes", "Yes")
98 canreinvite:value("nonat", "Yes when not behind NAT")
99 canreinvite:value("update", "Use UPDATE rather than INVITE for path redirection")
100 canreinvite:value("no", "No")
101 canreinvite.rmempty = true
103 static = iaxgeneral:option(Flag, "static", "Static", "")
104 static.rmempty = true
106 writeprotect = iaxgeneral:option(Flag, "writeprotect", "Write Protect", "")
107 writeprotect.rmempty = true
110 sipgeneral = cbimap:section(TypedSection, "sipgeneral", "Section sipgeneral", "")
111 sipgeneral.anonymous = true
112 sipgeneral.addremove = true
114 allow = sipgeneral:option(MultiValue, "allow", "Allow codecs", "")
115 allow:value("ulaw", "ulaw")
116 allow:value("alaw", "alaw")
117 allow:value("gsm", "gsm")
118 allow:value("g726", "g726")
121 port = sipgeneral:option(Value, "port", "SIP Port", "")
124 realm = sipgeneral:option(Value, "realm", "SIP realm", "")
128 moh = cbimap:section(TypedSection, "moh", "Music On Hold", "")
130 application = moh:option(Value, "application", "Application", "")
131 application.rmempty = true
132 application:depends({ ["asterisk.moh.mode"] = "custom" })
134 directory = moh:option(Value, "directory", "Directory of Music", "")
135 directory.rmempty = true
137 mode = moh:option(ListValue, "mode", "Option mode", "")
138 mode:value("system", "program to run")
139 mode:value("files", "Read files from directory")
140 mode:value("quietmp3", "Quite MP3")
141 mode:value("mp3", "Loud MP3")
142 mode:value("mp3nb", "unbuffered MP3")
143 mode:value("quietmp3nb", "Quiet Unbuffered MP3")
144 mode:value("custom", "Run a custom application")
147 random = moh:option(Flag, "random", "Random Play", "")
148 random.rmempty = true