OpenVox D410P Dahdi en
From Wiki
Chapter 1 Overview
1. What is D410P
D410P is a high-performance, cost-effective four span digital voice card. It provides compact and powerful interface to asterisk that can support E1/T1/J1 and PRI interface.
With the improved I/O speed, the card reduces CPU usage and increased card density per server. D410P is fully compatible with Asterisk application. The open source driver supports an API interface for custom application development.
D410P supports industry standard telephony and data protocols including Primary Rate ISDN (both N. American and Standard Euro) protocol families for voice, PPP, Cisco, HDLC, and Frame Relay data modes. Both line-side and trunk-side interfaces are supported.
Other Features Include:
1) Supporting 3.3V and 5V PCI slots
2) High Performance PCI BusMaster with up to 2Kbytes FIFO
3) Be easy to install: Support wct4xxp driver included in original dahdi without any patch
Certificates: CE, FCC
Misc:
1) Temperature Operation: 0 to 50°C
2) Temperature Storage: - 65 to 125°C
3) Humidity:10 TO 90% NON-CONDENSING
4) Voltage:3.3V/5V
5) Power Dissipation Max:2.6W/3.9W
2. What is Asterisk:
The Definition of Asterisk is described as follow:
Asterisk is a complete PBX in software. It runs on Linux,BSD,Windows (emulated) and provides all of the features you would expect from 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.
Asterisk provides:
1) Voicemail services with Directory
2) Call Conferencing
3) Interactive Voice Response
4) Call Queuing
5) Support for three-way calling, caller ID services
6) ADSI, IAX, SIP, H.323, MGCP and SCCP/Skinny.
Chapter 2 Card Installation and Configuration
1. Hardware Installation and Setup
Before inserting the D410P card in to PCI slot, customer should set the jumpers correctly. Please check:
1) SPAN Type Setup
Jumper P5 can be adjusted for each span at E1 or T1 mode.
2) Software Installation and Setup
D410P supports original dahdi wct4xxp driver. There are few steps to install wct4xxp drivers.
To make the asterisk and dahdi running, users have to download libpri, dahdi and asterisk. For more details about source of these packages, please visit:www.asterisk.org.
Note:
If there is no kernel source in the system, user should install it. Run command: yum install kernel-devel. If the kernel is smp kernel, please run this command: yum install kernel-smp-devel.
2.1) 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++
2.2)Start CentOS 5.3, enter the system,enter the command: lspci –vvvv
00:0c.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface Subsystem: Unknown device 79fe:0001 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 32 (250ns min, 32000ns max) Interrupt: pin A routed to IRQ 201 Region 0: I/O ports at b800 [size=256] Region 1: Memory at febfe000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0+,D1-,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME-
2.3) Install libpri:
cd /usr/src/libpri make clean make make install
2.4)Install dahdi-linux, go to /usr/src/dahdi-linux-xxxx, run:
make make install
2.5)Install dahdi-tools, go to /usr/src/dahdi-tools-xxxx, run:
./configure make make install
2.6) Install asterisk, go to /usr/src/asterisk-1.6.x.x, run:
cd /usr/src/asterisk-1.6.XX ./configure make make install make samples
2.7)Edit the file(etc/dahdi/system.conf):
span=1,1,1,ccs,hdb3 # termtype: te bchan=1-15,17-31 dchan=16 echocanceller=mg2,1-15,17-31 # Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" span=2,2,1,ccs,hdb3 # termtype: te bchan=32-46,48-62 dchan=47 echocanceller=mg2,32-46,48-62 # Span 3: TE4/0/3 "T4XXP (PCI) Card 0 Span 3" span=3,3,0,ccs,hdb3,crc4 # termtype: te bchan=63-77,79-93 dchan=78 echocanceller=mg2,63-77,79-93 # Span 4: TE4/0/4 "T4XXP (PCI) Card 0 Span 4" span=4,4,0,ccs,hdb3,crc4 # termtype: te bchan=94-108,110-124 dchan=109 echocanceller=mg2,94-108,110-124 # Global data loadzone = cn defaultzone = cn
2.8) Edit chan_dahdi.conf by vi /etc/asterisk/chan_dahdi.conf:
[channels] context=zap-in switchtype=euroisdn pridialplan=national signalling=pri_cpe usecallerid=yes hidecallerid=no callwaiting=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes echocancel=yes rxgain=0.0 txgain=0.0 group=1 callgroup=1 pickupgroup=1 immediate=no callprogress=no callerid=asreceived group=0,11 context=from-pstn switchtype = euroisdn signalling=pri_cpe channel => 1-15,17-31 group=0,12 context=from-pstn switchtype = euroisdn signalling=pri_cpe channel => 32-46,48-62 group=0,13 context=from-pstn switchtype = euroisdn signalling = pri_cpe channel => 63-77,79-93 group=0,14 context=from-pstn switchtype = euroisdn signalling = pri_cpe channel => 94-108,110-124
2.9) edit the dialplan(/etc/asterisk/extensions.conf)
[from-pstn] exten => s,1,Answer() // answer the inbound call exten => s,n,Playback(cc_welcome) // please mesaage exten => s,n,Hangup() [from-internal] exten => 200,1,Dial(dahdi/1/outgoing_number) // dial 200 to dialout from zap 1 exten => 200,2,Hangup
2.10) Load driver wct4xxp, run commands:
modprobe dahdi ; load dahdi modprobe wct4xxp ; load the card driver dahdi_cfg -vvvv ; start the channels
2.11) Start asterisk by run: asterisk -vvvgc, under asterisk console, run
2.11.1) "dahdi show channels", There should be some channels. if there is no channels, please check the chan_daid.conf, make sure the content in the chan_dahdi.conf is correct.
2.11.2) "pri show spans", make sure that pri is up and active.
If there is no any problem with step 2.11.1 and step 2.11.2, users should be able to make inbound and outbound calls.
Test tools:
Centos-5.3 Kernel version: 2.6.18-128.el5 dahdi-linux: 2.2.0 dahdi-tools: 2.2.0 Asterisk: 1.6.0.10 Hardware: OpenVox D410P
Chapter 3 References
www.openvox.cn
www.digium.com
www.asterisk.org
www.voip-info.org
www.asteriskguru.com
