Hosted Vicidial server starts from $39 Contact Us Buy Now!

How to remove reinstall upgrade dahdi driver in my asterisk server

Estimated read time: 2 min

DAHDI-Remove-Uninstall-Reinstall-Upgrade

Topic: How to remove reinstall upgrade dahdi driver in my asterisk server


how to remove dahdi

  Introduction:

  Asterisk is a Open source Communication software , You can use Asterisk to build communications applications, things like business phone systems (also known as IP PBXs), call distributors, VoIP gateways and conference bridges.
    
Digium Asterisk Hardware Device Interface (DAHDI) 
    DAHDI is a collection of open source drivers, for linux, that are used to interface with a variety of telephony related hardware. 
It consists of two parts.
The DAHDI-Linux project contains the individual board drivers for the supported hardware. 
The DAHDI-Tools project contains an assortment of user space utilities that are used to setup and test the drivers.   

  Overview: 

    In this Blog topic i will be covering the steps to remove or uninstall the dahdi driver, followed to that either reinstall same dahdi version or installing the latest version of dahdi.

  Steps to remove - reinstall dahdi

   Step 1: Stop Dahdi Service

    Before removing the dadhi, stop the dahdi services from asterisk service and linux services.
Run the below command to stop dadhi running under asterisk 

asterisk -rx "module unload chan_dahdi.so"
systemctl stop dadhi

   Step 2: Removing-Uninstall Dahdi

    Next you need to find the dahdi modules drivers which are installed in the server, if multiple drivers modules are installed you need to remove all before removing the actual dahdi driver.

Command to check the list of dahdi modules installed

lsmod | grep dahdi

you will get the below output 

asterisk dahdi reinstall

Now uninstall all the modules which shown in above pic

modprobe -r wctc4xxp wctdm24xxp wcte12xp xpp dahdi_transcode wcb4xxp
modprobe -r wctdm wcfxo wctdm24xxp wcte11xp wct1xxp wcte12xp
modprobe -r dahdi_voicebus wct4xxp wctdm24xxp

Finally remove the actual dahdi driver by running below command

modprobe -r dahdi

   Step 3: Reinstalling or Upgrade to Latest Dahdi

Download the latest dahdi driver from the below link.

cd /usr/src/
wget https://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz

If want to download a specific version of dahdi, check out the below link for asterisk archive repository

https://downloads.asterisk.org/pub/telephony/dahdi-linux-complete

Installing the Dahdi,
Run the below command to unzip and install the dahdi

cd /usr/src/
tar -xvzf dahdi-linux-complete-current.tar.gz
ls
cd dahdi-linux-complete-2.10.1+2.10
note: replace the dahdi version 2.10.1
make clean
make all
make install
make config

   Step 4: Configuring the Dahdi

    If you have any digium telephony card installed or need to generate and install dahdi dummy driver ,run the below commands

dahdi_genconf -v
dahdi_cfg -v
systemctl restart dahdi
asterisk -rx "module load chan_dahdi.so"

   Step 5: Troubleshoot- status check

    Run the below commands to check the status of dahdi service

dahdi_cfg -v
asterisk -rx "dahdi show status"

If still  dahdi version show old version after running dahdi_cfg -v
then follow the below steps

Then run the below commands to remove the old version

rpm -qa | grep "dahdi"
check the outputs , below is the one i got from my server
rpm -qa | grep "dahdi"
dahdi-linux-devel-2.4.1-70.el5
dahdi-tools-2.4.1-68.el5
dahdi-linux-2.4.1-70.el5
dahdi-linux-kmdl-2.6.18-238.9.1.el5.goPAE-2.4.1-70.RHL5

run the below command for each package outputs to remove the particular dahdi rpms

rpm -e --nodeps "dahdi-linux-devel-2.4.1-70.el5"
rpm -e --nodeps "dahdi-tools-2.4.1-68.el5"
rpm -e --nodeps "dahdi-linux-2.4.1-70.el5"
rpm -e --nodeps "dahdi-linux-kmdl-2.6.18-238.9.1.el5.goPAE-2.4.1-70.RHL5"

once done again follow the above steps to reinstall the dahdi latest

  Conclusion:

    hope this article is helpful, for support reach me on skype: striker24x7

1 comment

  1. second ago
    How to Reinstall or upgrade the dahdi driver to latest version
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.