DAHDI_GENCONF(8)

πŸ‘‘ DAHDI_GENCONF(8) β€” bestie edition

okay so real talk, this is the manual for dahdi_genconf from the DAHDI_GENCONF(8) section of the user-contributed Perl docs, and honestly? she's a baddie. let's get into it πŸ’…

✨ NAME ✨

dahdi_genconf β€” generates configuration for Dahdi channels. that's it, that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

dahdi_genconf [options] [generator...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so this script generates configuration files for Dahdi hardware. she's built diff because she pulls from two info sources, no cap:

πŸ’– Hardware

the actual Dahdi hardware gets automatically detected on the host. she just knows. ✨

πŸ’– /etc/dahdi/genconf_parameters

a configuration file that supplements the hardware info. lowkey important: its location may be overridden via the GENCONF_PARAMETERS environment variable. 🫢


the dahdi_genconf script can generate various kinds of configuration files, as specified by the generator arguments. each generator is a perl class in the Dahdi::Config::Gen namespace, and the generator names you type on the command line are just those class names in lowercase. iconic behavior fr.

the following generators are currently implemented: system, modules, spantypes, assignedspans, chandahdi, unicall, users.

for further documentation on each, please user perldoc on the relevant class. E.g:

perldoc Dahdi::Config::Gen::Chandahdi

each generator on the command line may be passed custom options by assigning a comma separated list of options to the generator name. E.g:

dahdi_genconf system chandahdi=verbose unicall

periodt. 🧚

⭐ Global options ⭐

  • -V, --version β€” Version β€” prints the version string and exits. bye bestie πŸ‘‹
  • -v, --verbose β€” Verbose β€” sets the 'verbose' option for all generators. every single one. she's thorough.
  • -F, --freepbx β€” FreePBX β€” sets the 'freepbx' option for all generators. currently, chandahdi is the one affected. πŸ™ˆ
  • *--line-mode=mode* β€” where mode may be E1, J1 or T1.

enables the generator spantypes and the option line-mode to it. (equivalent to the option --line-mode to dahdi_span_types.) this will generate a span-types.conf file with a single wildcard line setting the line mode to mode. slay. πŸ”₯

πŸ’€ Implementation notes πŸ’€

  • genconf_parameters parsing is done via Dahdi::Config::Params. an object representing the parsed data is instantiated by: Dahdi::Config::Params->new(). the item() method of this object contains all the hard coded defaults of the configuration directives. she keeps receipts. πŸ“
  • a configuration object is instantiated by Dahdi::Config::Gen->new($params). the mapping of configuration directives into semantic configuration is done in the constructor. main character energy tbh.
  • a single generator is run via the the run_generator() method of the configuration object. (yes, "the the" β€” that's canon, i don't make the rules 😭)

ngl bestie if you're out here generating config for Dahdi hardware, you already ate. this script is just the cute little assistant holding your iced coffee. πŸ“

made with πŸ’– by the user-contributed Perl docs, perl v5.40.1, dated 2026-06-15 β€” yeah she's got a timestamp and she's proud of it. mwah. πŸ’…βœ¨

πŸ“¦ where this page comes from