1
.TH GENZAPTELCONF 8 "July 18th, 2005" "Xorcom Rapid Asterisk" "Linux Programmer's Manual"
7
[-sRdv] [-c <country_code>] [-e <base_exten>] [ -F ]
10
[-sRdv] -l -- only list to standard output
13
-su -- only unload zaptel modules
20
is a script to detect zaptel devices (currently mostly TDM cards are
21
supported). It generates both
24
.I /etc/asterisk/zapata-channels.conf
29
(HFC, with ZapBRI) cards are basically identified as well. However the span
30
configiration is a default that I only hope is sane. Looking for feedback
36
A two-letter country code. Sets the country-code for the zonezone
39
, The default is the value of
42
.I /etc/default/zaptel
43
and failing that, "us".
48
Also try to detect modules. Unloads all zaptel modules and loads them
49
one by one. Considers a module useful if it loaded successfully and if
50
loading it has generated at least one zapata channel.
52
The list of detected modules is written as the value of
55
.I /etc/default/zaptel
67
. This is mostly for the caller-id values. Crude, but may be good enough.
74
Disable writing FXS extensions in zapata.conf
79
Only list deceted channels and their signalling. Don't write
80
configuration files. Note, however that
82
will still rewrite the modules line in
83
.I /etc/default/zaptel
93
with a list of our modules, thereby
94
triggers their loading via modprobe on the next boot.
103
Don't restart asterisk even if it was stopped using
110
Stop asterisk for the duration of the test. The detection will only
111
work if nobody uses the zaptel channels:
113
* To allow unloading of modules
115
* to allow reading configuration files.
117
This option tells the script to stop asterisk (if it was running) and to
118
try to start it after the end of the test.
123
Be verbose. lists the detected modules if
125
is used. Lists detected channls. In the end tries to connect to asterisk
126
to get a list of configured zaptel channels.
129
Look at the beginning of the script for a number of variables that can
130
be overriden through the configuraion file. Some variables can also be
131
overriden through the environment. The configuration file is sourced by
132
bash but for compatibility expected to have only 'var=VALUE' lines and
133
comments or empty lines.
135
The configuration will first be read from
136
.I /etc/default/zaptel
138
.I /etc/sysconfig/zaptel
139
otherwise (But those file names may be overriden, see
140
.I ZAPTEL_BOOT_DEBIAN
142
.I ZAPTEL_BOOT_FEDORA
143
below). Variables set in those files will override the default settings
144
and setting rom the environment.
146
The following variables may be set from the environment:
147
ZAPCONF_FILE, ZAPATA_FILE, ZAPTEL_BOOT_DEBIAN, ZAPTEL_BOOT_FEDORA,
148
DEVZAP_TIMEOUT, ZTCFG
153
The default country. Can be also overriden by the option -c
158
The base number used for automatic numbering
163
If set to 'yes', no context changes are made in zapata-channels.conf
168
The context into which calls will go from zaptel trunks.
173
The context into which calls will go from zaptel phones.
178
If set to 'yes', no group settings are made in zapata-channels.conf
183
The group number for zaptel trunks.
188
The group number for zaptel phones.
193
modules list. Used for unloading and modules detection. The order of modules
194
is the same for both.
199
ztcfg's configuration file. The sane default is /etc/zaptel.conf .
204
The generated partial zapata.conf snippet. Default:
205
/etc/asterisk/zapata-channels.conf .
208
.I ZAPTEL_BOOT_DEBIAN
210
The Debian Zaptel defaults file. Normally
211
.I /etc/default/zaptel
216
.I ZAPTEL_BOOT_FEDORA
218
The Zaptel defaults file on various other distributions. Normally
219
.I /etc/sysconfig/zaptel
225
Maximal number of seconds to wait for /dev/zap to be initializaed by
231
The full path to the ztcfg tool. Default:
233
genzaptelconf will also explicitly test for
242
The configuration file used by
244
to configure zaptel devices. re-written by
246
. A backup copy is saved to
247
.I /etc/zaptel.conf.bak
251
.I /etc/asterisk/zapata.conf
253
The configuration file of Asterisk's
255
Not modified directly by
257
If you want genzaptelconf's setting to take effect, add the following
261
#include "zapata-channels.conf"
265
.I /etc/asterisk/zapata-channels.conf
267
This is the snippet of
269
configuration file that
270
.I genzaptelconf generates.
271
. A backup copy is saved to
272
.I /etc/asterisk/zapata-channels.conf.bak
276
.I /etc/default/zaptel
278
This file holds configuration for both
281
.I /etc/init.d/zaptel .
282
It is sourced by both scripts and can thus be used to override settings
283
of variables from those scripts.
288
A debian-specific list of kernel modules to be loaded by modprobe at
289
boot time. When the option
291
(detect) is used, genzaptelconf will write in this file zaptel modules
292
to be loaded. If you want to use a different file, set
294
. If it is rewritten, a backup copy is saved to
303
ztcfg(8) asterisk(8).
306
If you override a configuration variable both through the environment
307
and through the configuration file, the value from the configuration
311
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>
312
Permission is granted to copy, distribute and/or modify this document under
313
the terms of the GNU General Public License, Version 2 any
314
later version published by the Free Software Foundation.
316
On Debian systems, the complete text of the GNU General Public
317
License can be found in /usr/share/common-licenses/GPL.