# Installing DAHDI after asterisk

**URL:** <https://community.asterisk.org/t/installing-dahdi-after-asterisk/65882>\
**Category:** Uncategorized\
**Created:** [March 6, 2016, 11:57am UTC](https://community.asterisk.org/t/installing-dahdi-after-asterisk/65882 "2016-03-06T11:57:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitris1780](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dimitris1780](https://community.asterisk.org/u/Dimitris1780)\
**Post date:** [March 6, 2016, 11:57am UTC](https://community.asterisk.org/t/installing-dahdi-after-asterisk/65882/1 "2016-03-06T11:57:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dimitris1780](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dimitris1780](https://community.asterisk.org/u/Dimitris1780)\
**Post date:** [March 6, 2016, 12:28pm UTC](https://community.asterisk.org/t/installing-dahdi-after-asterisk/65882/2 "2016-03-06T12:28:52Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 6, 2016, 2:34pm UTC](https://community.asterisk.org/t/installing-dahdi-after-asterisk/65882/3 "2016-03-06T14:34:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dimitris1780](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dimitris1780](https://community.asterisk.org/u/Dimitris1780)\
**Post date:** [March 7, 2016, 7:12am UTC](https://community.asterisk.org/t/installing-dahdi-after-asterisk/65882/4 "2016-03-07T07:12:43Z")

</div>

Thanks for the info 😉
