OpenVox D110P Asterisk 1.8 Dahdi en

From Wiki
Jump to: navigation, search

Chapter 1 Overview

1. What is D110P/D110PG

D110P/D110PG is a single span E1/T1/J1 digital line telephony product. It's non-Rohs for D110PG.

D110P/D110PG is a high-performance, cost-effective single span digital voice card. It provides compact and powerful interface to asterisk that can support E1/T1/J1 and PRI interface.

D110P/D110PG supports industry standard protocols, including MFR2, PRI, Cisco PPP, Frame relay etc. The low profile allows it to fit within a 2U rack-mount case.
D110P is 100% hardware compatible with Digium TE110P. It can run by using TE110P driver without any patch file. D110PG needs to download the patch files from www.openvox.cn.

ROHS: NO (for D110PG only)
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
5) Power Dissipation Max:1.2W

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
Attention:if you found J914(input)and J915(output)interfaces on the card, it means the card support clock line, for the detail information, please refer to the following link:<br\>

http://bbs.openvox.cn/viewthread.php?tid=874&extra=page%3D1

Before inserting the D110P card into PCI slot, customer should set the jumpers correctly. There are few steps go through:
1) SPAN Type Setup
P5 controls the function of each span at E1 or T1 mode.

2. Software Installation and Setup
D110E supports original dahdi wcte11xp driver. There are few steps to install wcte11xp drivers.

2.1 Checking the D110P hardware Run the command: lspci -vvvvvv, user should see the this info:

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.2 Checking and installing packages

Before installing dahdi and asterisk, please make sure that some supporting packages have been installed.

Note that if there is no kernel source in the system, user should install them. User can run yum again: yum install kernel-devel. It is time to check for the availability of some supporting packages:

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 some packages are not installed, please install them by using yum to install

yum install bison
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.3 Download and Compile Libpri,Dahdi and Asterisk

Please download libpri, dahdi-linux-complete-XX and asterisk 1.8.XX from http://downloads.asterisk.org/pub/telephony/
Here,assuming these packages are stored in /usr/src directory. Customers compile those packages as following in order:

2.3.1 Compile libpri-XX:

cd /usr/src/libpri-XX
make clean
make
make install

2.3.2 Compile dahdi

cd /usr/src/dahdi-linux-complete-xx
make
make install 
make config

2.3.3 Compile asterisk

cd /usr/src/asterisk-1.8.X
./configure
make
make install
make samples 

2.4 Loader driver Load the driver by these commands:

modprobe dahdi  ; load dahdi driver
modprobe wcte11xp opermode=YOUR COUNTRY; load the wctdm driver with your country 
dahdi_genconf  ;Generate configure files
dahdi_cfg –vvvv ; start channels

The command dahdi_genconf will automatically generate the /etc/dahdi/system.conf and /etc/asterisk/dahdi-channels.conf.
Note: the dahdi-channels.conf should be included in /etc/asterisk/chan_dahdi.conf
if not, please run a command to include that file:
echo "#include dahdi-channels.conf" >> /etc/asterisk/chan_dahdi.conf

2.5 Configuration

1) The file /etc/dahdi/system.conf should looks like the following

span=1,1,1,ccs,hdb3
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31

# Global data
loadzone        = cn
defaultzone     = cn

2) The file /etc/asterisk/dahdi-channels.conf should looks like the following

group=0,11
context=from-pstn
switchtype = euroisdn
signalling=pri_cpe
channel => 1-15,17-31

3) edit asterisk/extension.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 dahdi 1
exten => 200,2,Hangup

4) Start asterisk by asterisk -vvvvvvgc, under asterisk console:

run: "dahdi show channels"; there should be some channels, if the system setting is correct.
run: "pri show spans" ; the spans must be up and active
if the two results are in a normal status, the calls should be made.

Test tools:

Centos-5.5 
Kernel version: 2.6.18-194.el5 
dahdi-linux-complete: 2.3.0.1+2.3.0
Asterisk: 1.8.0
Hardware: OpenVox D110P
www.asterisk.org
www.voip-info.org
www.asteriskguru.com