Thanks for the feedback guys. Really appreciate it. I thought everything had been solved, but after a bit of checking it looks like I’m still having issues. It seems that DAHDI is not automatically starting on reboot. If I manually start DAHDI, then restart Asterisk, it seems to come to life:
[root@freepbx ~]# lsdahdi
[root@freepbx ~]# service dahdi status
[root@freepbx ~]# service dahdi start
Starting dahdi (via systemctl): [ OK ]
[root@freepbx ~]# lsdahdi
### Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
1 FXO FXSKS (EC: OSLEC - INACTIVE) RED
2 FXS FXOKS (EC: OSLEC - INACTIVE)
3 FXS FXOKS (EC: OSLEC - INACTIVE)
4 FXO FXSKS (EC: OSLEC - INACTIVE) RED
[root@freepbx ~]# asterisk -r
Asterisk 13.17.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.17.0 currently running on freepbx (pid = 1897)
freepbx*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked In Service Description
pseudo default default Yes
freepbx*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@freepbx ~]# fwconsole restart
Running FreePBX shutdown...
Stopping RestApps Server
Stopped RestApps Server
Stopping UCP Node Server
[>---------------------------] 1 sec
Stopped UCP Node Server
Stopping Chat Server
Stopped Chat Server
Zulu Server is not running
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] 1 sec
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Stopping DAHDi for Digium Cards
DAHDi Stopped
Queue Callback Server is not running
Running FreePBX startup...
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Starting DAHDi for Digium Cards
DAHDi Started
Running Sysadmin Hooks
Restarting fail2ban
fail2ban Restarted
Updating License Information for 58918804
Starting Asterisk...
[============================] 2 secs
Asterisk Started
Starting RestApps Server...
[>---------------------------] 1 sec
Started RestApps Server. PID is 3769
Starting UCP Node Server...
[>---------------------------] < 1 sec
Started UCP Node Server. PID is 3848
RestApps is not licensed.
Starting Chat Server...
[>---------------------------] 1 sec
Started Chat Server. PID is 3936
This product is not licensed
[root@freepbx ~]# lsdahdi
### Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
1 FXO FXSKS (In use) (EC: OSLEC - INACTIVE) RED
2 FXS FXOKS (In use) (EC: OSLEC - INACTIVE)
3 FXS FXOKS (In use) (EC: OSLEC - INACTIVE)
4 FXO FXSKS (In use) (EC: OSLEC - INACTIVE) RED
[root@freepbx ~]# asterisk -r
Asterisk 13.17.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.17.0 currently running on freepbx (pid = 3594)
freepbx*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked In Service Description
pseudo default default Yes
1 from-analog en default Yes
2 from-internal en default Yes
3 from-analog en default Yes
4 from-analog en default Yes
freepbx*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@freepbx ~]#
However, if I just restart Asterisk after a reboot without manually starting DAHDI, it implies that DAHDI is running, but I don’t think it is:
[root@freepbx ~]# fwconsole restart
Running FreePBX shutdown...
Stopping RestApps Server
Stopped RestApps Server
Stopping UCP Node Server
[>---------------------------] < 1 sec
Stopped UCP Node Server
Stopping Chat Server
Stopped Chat Server
Zulu Server is not running
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] 2 secs
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Stopping DAHDi for Digium Cards
DAHDi Stopped
Queue Callback Server is not running
Running FreePBX startup...
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
DAHDi: Already started
Running Sysadmin Hooks
Restarting fail2ban
fail2ban Restarted
Updating License Information for 58918804
Starting Asterisk...
[============================] 2 secs
Asterisk Started
Starting RestApps Server...
[>---------------------------] 1 sec
Started RestApps Server. PID is 3274
Starting UCP Node Server...
[>---------------------------] 1 sec
Started UCP Node Server. PID is 3377
RestApps is not licensed.
Starting Chat Server...
[>---------------------------] 1 sec
Started Chat Server. PID is 3465
This product is not licensed
[root@freepbx ~]# lsdahdi
[root@freepbx ~]# asterisk -r
Asterisk 13.17.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.17.0 currently running on freepbx (pid = 3162)
freepbx*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked In Service Description
pseudo default default Yes
freepbx*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@freepbx ~]#
What is the right way to get DAHDI automatically started on reboot? Do I just add DAHDI to chkconfig:
[root@freepbx init.d]# ls
asterisk dahdi fail2ban functions iSymphonyServer netconsole network README wanrouter
[root@freepbx init.d]# chkconfig --list
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
asterisk 0:off 1:off 2:off 3:off 4:off 5:off 6:off
iSymphonyServer 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
wanrouter 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@freepbx init.d]#
Is this what starts Asterisk? It looks like it’s started elsewhere, given that all runlevels are off.