Provided by: zaptel_1.2.5-1_i386
genzaptelconf -- generates zaptel configuration (TDM adaptors)
genzaptelconf [-sdv] [-c <country_code>] [-r |-e <base_exten>] [ -F ]
genzaptelconf [-sdv] -l -- only list to standard output
genzaptelconf -su -- only unload zaptel modules
genzaptelconf -h -- Help screen
genzaptelconf is a script to detect zaptel devices (currently mostly
TDM cards are supported). It generates both /etc/zaptel.conf and
PRI and BRI (HFC, with ZapBRI) cards are basically identified as well.
However the span configiration is a default that I only hope is sane.
Looking for feedback
A two-letter country code. Sets the country-code for the
zonezone entries in zaptel.conf , The default is the value of
lc_country from /etc/default/zaptel and failing that, "us".
Also try to detect modules. Unloads all zaptel modules and loads
them one by one. Considers a module useful if it loaded
successfully and if loading it has generated at least one zapata
The list of detected modules is written as the value of
ZAPTEL_MODS in /etc/default/zaptel
Configure channel i as extension exten_num + i See also -r
Disable writing FXS extensions in zapata.conf
Only list deceted channels and their signalling. Don’t write
configuration files. Note, however that -ld will still rewrite
the modules line in /etc/default/zaptel (see -d above).
Update /etc/modules with a list of our modules, thereby triggers
their loading via modprobe on the next boot.
This triggers the -d option as well.
Try to guess a useful zapata-channels configuration for Xorcom
Stop asterisk for the duration of the test. The detection will
only work if nobody uses the zaptel channels:
* To allow unloading of modules
* to allow reading configuration files.
By default the script will check if asterisk is running and
alert if so. This option tells the script to stop asterisk (if
it was running) and to try to start it after the end of the
Be verbose. lists the detected modules if -d is used. Lists
detected channls. In the end tries to connect to asterisk to get
a list of configured zaptel channels.
The configuration file used by ztcfg to configure zaptel
devices. re-written by genzaptelconf
When zaptel.conf The original zaptel.conf
The configuration file of Asterisk’s chan_zap. Not modified
directly by genzaptelconf. If you want genzaptelconf’s setting
to take effect, add the following line at the end of
This is the snippet of chan_zap configuration file that
The backup copy of zapata-channels.conf
This file holds configuration for both genzaptelconf and
/etc/init.d/zaptel . It is sourced by both scripts and can thus
be used to override settings of variables from those scripts.
Some of the variables that can be set in /etc/default/zaptel and
The default country. Can be also overriden by the option
The base number used for automatic numbering
If set to ’yes’, no context changes are made in zapata-
The context into which calls will go from zaptel trunks.
The context into which calls will go from zaptel phones.
If set to ’yes’, no group settings are made in zapata-
The group number for zaptel trunks.
The group number for zaptel phones.
modules list. Used for unloading and modules detection.
The order of modules is the same for both.
A debian-specific list of kernel modules to be loaded by
modprobe at boot time. When the option -d (detect) is used,
genzaptelconf will write in this file zaptel modules to be
loaded. If you want to use a different file, set MOD_FILELIST
The backup copy of /etc/modules
This manual page was written by Tzafrir Cohen
<firstname.lastname@example.org> Permission is granted to copy, distribute
and/or modify this document under the terms of the GNU General Public
License, Version 2 any later version published by the Free Software
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL.