Applies to VoipNow 3.x.x!
This article covers three situations when DAHDI tools can be installed:
- During a fresh install, when the answer to the question about Dahdi drivers installation is positive
- When configuring an existing system to use a newly added card
- When updating existing packages on a system
You can make all these configurations from the server's Command Line Interface, where you log in as root.
Step-by-step guide
Fresh install
During installation, you will be asked if you already have a Dahdi card and if you want to install the necessary software for that card.
"Do you want to install drivers for Dahdi interface cards?" "STRONLY NOT RECOMMENDED IF YOU DO NOT HAVE AN INTERFACE CARD." "What do you want to do (No/Yes)? [N]"
Choose Yes and all the necessary drivers and tools will be installed.
Once the installation process is complete, you must do the following setup:
Restart the Dahdi service, generate a new dahdi configuration file, and configure the system using the previously generated config file.
/etc/init.d/dahdi restart
dahdi_genconf
dahdi_cfg -v
dahdi_genconf generates /etc/dahdi/system.conf which is used by dahdi_cfg for configurations.
Only PRI and FXO cards are supported. If dahdi_genconf does not recognize your card, please consult your device manuals.
Restart Asterisk and run dahdiadd tool so that you can add the information needed to VoipNow's database.
/etc/init.d/asterisk restart
/usr/local/voipnow/bin/upgrade/dahdiadd.sh
Once the execution process is complete, you can add a PRI channel from VoipNow's web interface. Log in as admin, select Channels from the side menu and click the Add PRI Channel.
Install a Dahdi card on a set system
If a Dahdi card is added to a system that has already been set, install the necessary tools and drivers using yum from the VoipNow repository.
Once the drivers and tools have already been installed, you must add a channel. For that you need root access to your server and admin access to the web interface.
Make sure EPEL repository is available and run the following command on CentOS 7 as root:
yum -y install epel-release
Install dkms.
yum -y install dkms
Once dkms is installed, run the following command:
yum -y -c /etc/voipnow-yum.conf install dahdi-linux-dkms
Now that all packages are installed, Dahdi services must be restarted.
A new configuration must be generated and the system must be configured using that configuration file. Then you need to restart Asterisk and run the dahdiadd tool to add the necessary information in VoipNow's database.
/etc/inid.d/dahdi restart
dahdi_genconf
dahdi_cfg -v
/etc/init.d/asterisk restart
/usr/local/voipnow/bin/upgrade/dahdiadd.sh
Only PRI and FXO cards are supported. If dahdi_genconf does not recognize your card, please consult your device manuals.
Upgrade from a previous version
To upgrade, you may use the Command Line Installer. In order to install new modules, you need to remove the existing modules from the server. To do that, follow the steps below:
Before running the VoipNow Command Line Installer, you need to Dahdi and Asterisk services:
/etc/init.d/asterisk stop /etc/init.d/dahdi stop
Run the dkms command to listing the current versions of the Dahdi module. Then remove the current Dahdi module from the server by replacing [ver] with the version obtained from the dkms status.
dkms status dkms remove -m dahdi-linux-dkms -v [ver]
Run VoipNow Command Line Installer and make sure that your response is affirmative when you are asked about Dahdi drives installation.
/etc/inid.d/dahdi restart
dahdi_genconf
dahdi_cfg -v
/etc/init.d/asterisk restart
/usr/local/voipnow/bin/upgrade/dahdiadd.sh
Once the process is comeplete, you can modify or add a PRI channel from VoipNow's web interface. Select Channels from the side menu and click on Add PRI channel.
Only PRI and FXO cards are supported. If dahdi_genconf does not recognize your card, please consult your device manuals .
Related articles
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.