Installing DAHDI after asterisk

Hello all,

Beginner user here…I have successfully installed asterisk, created sip extensions etcetera and then decided to try connecting the pstn line. I had not previously installed DAHDI as I didn’t think I would need it at the time.

After trying to install DAHDI complete I receive several errors during the make install and make config stages.

INSTALL /etc/asterisk/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/dahdi.ko
Can’t read private key
INSTALL /etc/asterisk/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/dahdi_dynamic.ko
Can’t read private key

As a result I have no DAHDI modules on my asterisk system, although after some modifications I have the following:

root@moter:/etc/asterisk# lsmod | grep dahdi
dahdi_transcode 16384 1 wctc4xxp
dahdi_voicebus 61440 2 wctdm24xxp,wcte12xp
dahdi 229376 15 xpp,wctdm24xxp,wcaxx,wcfxo,wctdm,dahdi_transcode,oct612x,dahdi_voicebus,wcb4xxp,wct1xxp,wct4xxp,wcte43x,wcte11xp,wcte12xp,wcte13xp
crc_ccitt 16384 2 wctdm24xxp,dahdi

root@moter:/etc/asterisk# /etc/init.d/dahdi start
Loading DAHDI hardware modules:
wct4xxp: done wcte43x: done wcte12xp: done wcte13xp: done wct1xxp: done wcte11xp: done wctdm24xxp: done wcaxx: done wcfxo: done wctdm: done wcb4xxp: done wctc4xxp: done xpp_usb: done
Running dahdi_cfg: done.

But I cannot locate chan_dahdi.so

root@moter:/etc/dahdi# /etc/init.d/asterisk status
ERROR: ASTERISK_SBIN_DIR/asterisk not found

*CLI> module show like chan_dahdi.so
Module Description Use Count
0 modules loaded

Can anybody tell if this is because DAHDI was not installed prior to Asterisk?
If so is there a way to bypass this without affecting the Asterisk configuration?

Asterisk is installed from the source on a Ubuntu 14.04 LTS, 3.19.0-49-generic kernel.

Thanks in advance for any ideas.

Ok, to answer my own question (as it usually happens I guess) I proceeded to
make clean
./configure
make all
make install
make config

and I now have the desired module

*CLI> module show like chan_dahdi.so
Module Description Use Count
chan_dahdi.so DAHDI Telephony Driver w/PRI 0
1 modules loaded

without (as it seems) losing my initial configurations as I was afraid that would happen :slightly_smiling:

Asterisk will not overwrite configuration unless you use “make samples” or the new “make basic-pbx”. Both of these will overwrite the configuration files present on the system. A normal install process won’t.

Thanks for the info :wink: