chan_dahdi not loading on bootup but does on reload

When I first start asterisk the “dahdi show channels” command is missing. The module is listed in /etc/asterisk/modules.conf, and the dialplan shows at least one use of DAHDI/r1

If I run module show then I get a list of modules that includes chan_dahdi which I assume to mean it is loaded.

The dahdi devices & drivers appear to be present and correct.

>dahdi_cfg -vvv

DAHDI Tools Version - 2.4.1

DAHDI Version:
Echo Canceller(s): MG2

Channel map:

Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)

1 channels to configure.

Setting echocan for channel 4 to mg2

pbx3*CLI> dahdi show channels No such command 'dahdi show channels'

I built asterisk from scratch with no modifications using, and dahdi They build and install fine on SUSE linux 11.4.

If I do

at the linux command line or

at the asterisk command line then everything works fine.
My dialplan appears to load without errors and I can make and receive calls fine following the restart/load but as soon as I reboot the server then the module fails to load correctly again.

Maybe your init scripts have Asterisk loading before DAHDI is loaded?

Pretty sure they dont, I put them in as /etc/init.d/rc3.d/S08dahdi and /etc/init.d/rc3.d/S14asterisk respectively.

I should correct my earlier post though - doing a service asterisk restart does NOT make any difference the only thing that seems to fix this is a “module load”

Once that has been done the service asterisk restart will work.