1DAHDI_GENCONF(8)      User Contributed Perl Documentation     DAHDI_GENCONF(8)
2
3
4

NAME

6       dahdi_genconf - Generate configuration for Dahdi channels.
7

SYNOPSIS

9       dahdi_genconf [options] [generator...]
10

DESCRIPTION

12       This script generate configuration files for Dahdi hardware.  It uses
13       two information sources:
14
15       Hardware
16            The actual Dahdi hardware is automatically detected on the host.
17
18       /etc/dahdi/genconf_parameters
19           A configuration file that supplements the hardware information.
20           Its location may be overridden via the "GENCONF_PARAMETERS"
21           environment variable.
22
23       The dahdi_genconf script can generate various kinds of configuration
24       files as specified by the generator arguments.  Each generator is a
25       perl class in Dahdi::Config::Gen namespace.  The generator names on the
26       command line are the class names in lowercase.
27
28       The following generators are currently implemented: system, modules,
29       spantypes, assignedspans, chandahdi, unicall, users.
30
31       For further documentation on each, please user perldoc on the relevant
32       class. E.g: "perldoc Dahdi::Config::Gen::Chandahdi"
33
34       Each generator on the command line may be passed custom options by
35       assigning a comma separated list of options to the generator name. E.g:
36
37        dahdi_genconf system chandahdi=verbose unicall
38
39   Global options:
40       -V --version
41           Version -- print version string and exit.
42
43       -v --verbose
44           Verbose -- sets the 'verbose' option for all generators.
45
46       -F --freepbx
47           Freepbx -- sets the 'freepbx' option for all generators.
48           Currently, chandahdi is affected.
49
50       --line-mode=mode
51           mode may be E1, J1 or T1.
52
53           Enables the generator spantypes and the option line-mode to it.
54           (Equivalent to the option "--line-mode" to "dahdi_span_types").
55           This will generate a "span-types.conf" file with a single wildcard
56           line setting the line mode to mode.
57
58   Implementation notes:
59       ·   genconf_parameters parsing is done via "Dahdi::Config::Params".  An
60           object representing the parsed data is instantiated by:
61           "Dahdi::Config::Params->new()".  The "item()" method of this object
62           contains all the hard coded defaults of the configuration
63           directives.
64
65       ·   A configuration object is instantiated by
66           "Dahdi::Config::Gen->new($params)".  The mapping of configuration
67           directives into semantic configuration is done in the constructor.
68
69       ·   A single generator is run via the the "run_generator()" method of
70           the configuration object.
71
72
73
74perl v5.32.0                      2020-07-27                  DAHDI_GENCONF(8)
Impressum