Installing Asterisk from the source in a Debian 10 - Dahdi doesn't install drivers

Hi,
I am trying to install Asterisk and Dahdi from the source in a Debian 10 following the steps provided in wiki.asterisk.org. I get some warnings and notes on the way, but they still install successfully. When I check Dahdi’s status, it doesn’t show the drivers it is supposed to. All requirements were met.

I am using Dahdi dahdi-linux-complete-3.1.0+3.1.0 and Asterisk asterisk-16.6.0.
My system is:

Static hostname: debian
Icon name: computer-laptop
Chassis: laptop
Machine ID: fd175d78201d43d38e0357d4ef29dcfa
Boot ID: fef966e68c174247965c5b5f3107aee4
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-6-amd64
Architecture: x86-64

Here’s what I do and some partial outputs worth mention:

/usr/src/dahdi-linux-complete-3.1.0+3.1.0$ make

  CC       dahdi_cfg.o
dahdi_cfg.c: In function ‘are_all_spans_assigned’:
dahdi_cfg.c:153:7: warning: ‘/span_count’ directive output may be truncated writing 11 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
    "%s/span_count", device_path);
       ^~~~~~~~~~~
dahdi_cfg.c:152:2: note: ‘snprintf’ output between 12 and 1035 bytes into a destination of size 1023
  snprintf(attribute, sizeof(attribute) - 1,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "%s/span_count", device_path);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  CC       dahdi_tool-dahdi_tool.o
dahdi_tool.c: In function ‘sel_callback’:
dahdi_tool.c:167:40: warning: ‘            F10=Quit’ directive output may be truncated writing 20 bytes into a region of size between 1 and 197 [-Wformat-truncation=]
   snprintf(info2, sizeof(info2), "%-59s            F10=Quit", info);
                                        ^~~~~~~~~~~~~~~~~~~~
dahdi_tool.c:167:3: note: ‘snprintf’ output between 80 and 276 bytes into a destination of size 256
   snprintf(info2, sizeof(info2), "%-59s            F10=Quit", info);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dahdi_tool.c:163:40: warning: ‘ F1=Details F10=Quit’ directive output may be truncated writing 20 bytes into a region of size between 1 and 197 [-Wformat-truncation=]
   snprintf(info2, sizeof(info2), "%-59s F1=Details F10=Quit", info);
                                        ^~~~~~~~~~~~~~~~~~~~
dahdi_tool.c:163:3: note: ‘snprintf’ output between 80 and 276 bytes into a destination of size 256
   snprintf(info2, sizeof(info2), "%-59s F1=Details F10=Quit", info);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD     dahdi_tool

$ make install

  DEPMOD  4.19.0-6-amd64
Warning: modules_install: missing 'System.map' file. Skipping depmod.

$ make install-config

DAHDI has been configured.

List of detected DAHDI devices:
No hardware found

$ systemctl status dahdi # after restart

● dahdi.service - LSB: DAHDI kernel modules
   Loaded: loaded (/etc/init.d/dahdi; generated)
   Active: active (exited) since Mon 2019-10-14 11:37:13 BST; 2min 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 29255 ExecStart=/etc/init.d/dahdi start (code=exited, status=0/SUCCESS)

Oct 14 11:37:13 debian systemd[1]: Starting LSB: DAHDI kernel modules...
Oct 14 11:37:13 debian dahdi[29255]: Loading DAHDI hardware modules:
Oct 14 11:37:13 debian dahdi[29255]:    amf_usb: error
Oct 14 11:37:13 debian dahdi[29255]: /usr/sbin/dahdi_span_assignments: Missing '/etc/dahdi/assigned-spans.conf'
Oct 14 11:37:13 debian dahdi[29255]: Running dahdi_cfg: done.
Oct 14 11:37:13 debian systemd[1]: Started LSB: DAHDI kernel modules.

/usr/src/asterisk-16.6.0$ ./configure
make make install
make samples make config
make install-logrotate systemctl status asterisk # after restart

● asterisk.service - LSB: Asterisk PBX
   Loaded: loaded (/etc/init.d/asterisk; generated)
   Active: active (running) since Tue 2019-10-15 13:45:45 BST; 7s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 26932 ExecStart=/etc/init.d/asterisk start (code=exited, status=0/SUCCESS)
    Tasks: 79 (limit: 4572)
   Memory: 55.2M
   CGroup: /system.slice/asterisk.service
           └─26945 /usr/sbin/asterisk

Oct 15 13:45:45 debian systemd[1]: Starting LSB: Asterisk PBX...
Oct 15 13:45:45 debian asterisk[26932]: Starting Asterisk PBX: asterisk.
Oct 15 13:45:45 debian systemd[1]: Started LSB: Asterisk PBX.
Oct 15 13:45:46 debian asterisk[26945]: radcli: rc_read_config: rc_read_config: can't open /etc/radiusclient-ng/radiusclient.conf: No s
Oct 15 13:45:46 debian asterisk[26945]: radcli: rc_read_config: rc_read_config: can't open /etc/radiusclient-ng/radiusclient.conf: No s

$ lsmod | grep dahdi

dahdi                 241664  0
crc_ccitt              16384  1 dahdi

I think that’s your error right there!

Please rm that module and re-test.

Thanks for the reply.
That module is the one I need to install once the Dahdi is working. I get this same output before installing this amf_usb module.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.