install entvoice pri card with asterisk

August 17, 2012 admin PCI cards


1. After inserting the card into your PCI slot, boot your machine to linux and execute
the following command to list the devices detected by the PCI bus:

# lspci -vn

The output will be similar to the following:

02:00.0 Bridge: PLX Technology, Inc. Unknown device d44d (rev 01)
Subsystem: PLX Technology, Inc. Unknown device 9030

2. To install Libpri, Dahdi and Asterisk, we have to install the following prerequisite packages:

For CentsOS:

# yum install make bison bison-devel zlib zlib-devel openssl openssl-devel gnutls-devel flex gcc gcc-c++ libxml2 libxml2-devel newt-devel ncurses-devel libtermcap-devel kernel-devel curl curl-devel

For Debian/ Ubuntu:

# apt-get update
# apt-get install build-essential libxml2-dev libpcap-dev linux-headers-`uname -r` bison openssl libssl-dev libeditline0 libeditline-dev libedit-dev libncurses5-dev libssl-dev

3. Download the libpri software,

# cd /usr/src/
# wget

4. Expand the downloaded libpri under /usr/src/ directory, compile its contents, and install the drivers.

# tar -zxvf libpri-1.4.12.tar.gz
# cd libpri-1.4.12
# make
# make install

5. Download the entvoice Dahdi, which is available at site or the installation

# cd /usr/src/
# wget
# make
# make install
# make config

6. Asterisk installation
For using Asterisk for your application, follow the steps below.
Download the Asterisk 1.8.15 release version.

# cd /usr/src/
# wget

# tar –zxvf asterisk-
# cd asterisk-
# ./configure
# make
# make install

If this is the first Asterisk installation on this system, you should install the sample
configuration files. To do this, run:

# make samples
# make config

Note: Running this command will overwrite any older Asterisk configuration files that you have in the /etc/asterisk directory.

Generate Configuration files
(i) Type “dahdi_genconf –vvvv” to generate configuration files
(ii) Type “dahdi_cfg –vvvv” to configure the channels Module & channel Configuration
(i) Add “#include dahdi-channels.conf” at the end of /etc/asterisk/chan_dahdi.conf

Restart Dahdi
(i) /etc/init.d/dahdi stop
(ii) /etc/init.d/dahdi start
(iii) Now you can see the tor3e module also loaded.

Test Configuration
This session will provide steps for verifying the setup.

Execute Asterisk using the following command
# asterisk –vvvvvvvgc

Verify the span status using the following CLI command

CLI> dahdi show status
Description                                                             Alarms   IRQ    bpviol    CRC4
Entvoice (PCI) Quad E1 Card    0     Span 1        OK       0          2            0
Entvoice (PCI) Quad E1 Card    0     Span 2        OK       0          1            0
Entvoice (PCI) Quad E1 Card    0     Span 3        OK       0          3            0
Entvoice (PCI) Quad E1 Card    0     Span 4        OK       0          0            0

With all verifications done, you are now ready to make calls through the PRI card.

Leave a Reply

Your email address will not be published. Required fields are marked *


7,682 Spam Comments Blocked so far by Spam Free Wordpress

HTML tags are not allowed.

Powered by Entvoice.