OpenVox D115P Dahdi en
From Wiki
Chapter 1 Overview
1.What is DE115P/DE115E?
The DE115P/DE115E is a bundling of our D115P/D115E product and our new EC100-32 Octasic DSP-based echo cancellation module. The EC100 provides a certified carrier-grade algorithm that has been labeled a benchmark for echo cancellation for OpenVox.
With the improved I/O speed, the card reduces CPU usage and increased card density per server. DE115P/DE115E is fully compatible with Asterisk applications. The open source driver supports an API interface for custom application development.
Features:
128ms tail/channel (on all channel densities)
Octasic Music Protection
Adaptive Noise Reduction
Automatic Level Control (G.169)
Field upgradeable algorithm
V.25 / V.8 answer tone (w/ and w/o phase reversal)
DTMF as per Q.24
2.What is Asterisk?
Asterisk is a complete PBX in software. It runs on Linux, BSD, Windows(enulated) and provides all of the features you could expect f rom a PBX and more. Asterisk does voice over IP in four protocols, and can interoperate with almost all standards-based telephony equipment using relatively inexpensive hardware.
Chapter 2 Hardware Introduction
1.SW1:Card Serial Number Selection
If there is only one card in PCI slot,SW1 must be set to 0.
If there are more than one cards in PCI slot,please refer the installation guideline.
2.S5:Span Type Setting
Each dip switch controls one span configuration for E1 or T1/J1.
Setting DIP1 to ON means SPAN1 will be E1.
Setting DIP1 to OFF means SPAN1 will be T1.
The example sets all 4 SPANs to E1.
3.J7:PCI Power Supply
Shorten the Jumper 2 and 3 will use 5v power supply of PCI.
Shorten the Jumper 1 and 2 will use 3.3v power supply of PCI.
Chapter 3 Installation and Configuration
1.Insert the card into the PCI slot and start the system.Then run lspci:
lspci -vvvv ------------------------------------------------------------------- 06:01.0 Communication controller: Unknown device 1b74:0115 (rev 02) -------------------------------------------------------------------
2.Checking the support packages for libpri,dahdi and asteriskļ¼
rpm -q kernel-devel rpm -q bison rpm -q bison-devel rpm -q ncurses rpm -q ncurses-devel rpm -q zlib rpm -q zlib-devel rpm -q openssl rpm -q openssl-devel rpm -q gnutls-devel rpm -q gcc rpm -q gcc-c++
If missing any package, please install that.
yum install bison yum install kernel-devel yum install bison-devel yum install ncurses yum install ncurses-devel yum install zlib yum install zlib-devel yum install openssl yum install openssl-devel yum install gnutls-devel yum install gcc yum install gcc-c++
3.Download libpri,dahdi and asterisk.
cd /usr/src wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.11.5.tar.gz wget http://downloads.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-linux-complete-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.11.tar.gz
4.Install libri:
cd /usr/src tar -zxvf libpri-1.4.11.5.tar.gz cd libpri-1.4.11.5 make make install
5.Install dahdi:
cd /usr/src tar -zxvf openvox_dahdi-linux-complete-current.tar.gz cd dahdi-linux-complete-2.4.0+2.4.0 ./configure make make install make config
6.Install asterisk:
cd /usr/src tar -zxvf asterisk-1.6.2.11.tar.gz cd asterisk-1.6.2.11 ./configure make make install make samples
7.Edit configuration files.
dahdi_genconf
If there are any errors after running the command,please check the detail information.The system will offer command for solution,user can solve the problem according to the command,This command will generate /etc/dahdi/system.conf and /etc/asterisk/dahdi-channels.conf files.The following are the two files.
1)Edit /etc/dahdi/system.conf
span=1,1,0,ccs,hdb3 bchan=1-15,17-31 dchan=16 #Global data loadzone = cn defaultzone = cn
2)Edit /etc/asterisk/dahdi-channels.conf
group=0,11 context=from-pstn switchtype=euroisdn signalling=pri_cpe channel=>1-15,17-31 group= context=default
3)Check the /etc/asterisk/chan_dahdi.conf if /etc/asterisk/dahdi-channels.conf was included.If no,please run this command:
echo "#include dahdi-channels.conf" >> /etc/asterisk/chan_dahdi.conf
4)Edit the dialplan(/etc/asterisk/extensions.conf)
[from-pstn] exten => s,1,Answer() // answer the inbound call exten => s,n,Playback(cc_welcome) exten => s,n,Hangup() [from-internal] exten => 200,1,Dial(dahdi/g0/outgoing_number) // dial 200 to dialout from dahdi 1 exten => 200,2,Hangup
8.Load drivers: If the system.conf has been changed,you must reload the driver for the card.
modprobe -r opvxd115 modprobe opvxd115 dahdi_cfg -vvvvvv
If the output shows all the channels,the driver is installed successfully. If you use DE115P,you can run "dmesg" and find the EC module has been detected as below:
VPM450: echo cancellation for 32 channels VPM450: hardware DTMF disabled. VPM450: Present and operational servicing 1 span(s)
9.Starting asterisk
asterisk -vvvvvvvgc
Under asterisk console,run "dahdi show channels",If channels can be shown,it means channels have been loaded into asterisk.
*CLI> dahdi show channels Chan Extension Context Language MOH Interpret Blocked State pseudo default default In Service 1 from-pstn default In Service 2 from-pstn default In Service 3 from-pstn default In Service 4 from-pstn default In Service 5 from-pstn default In Service 6 from-pstn default In Service 7 from-pstn default In Service ...... 31 from-pstn default In Service
Then run "pri show spans" and make sure pri is up and active.
*CLI> pri show spans PRI span 1/0: Provisioned, Up, Active
If using DE115P, when making a call user can find EC status is ON as the following,otherwise it would be OFF.
Echo Cancellation: 128 taps currently ON
Test Environment:
Centos 5.5 libpri-1.4.11.5 dahdi-linux-complete2.4.0 asterisk-1.6.2.11 OpenVox DE115P
