OpenVox A800P Zaptel en
From Wiki
Contents |
OpenVox A800P User Manual
Chapter 1 Overview
Features
- A800P is a modular analog telephony interface product. It is designed to be the small and medium-sized business PBX usage. For example, each A800P can have up to 8 ports, and you are able to install 4 A800P cards in one PC to get 32 ports. A800P series must be used with FXO-100 or FXS-100 together to build a workable system. The FXO-100 and FXS-100 modules are also pin to pin compatible with X100M and S100M.
Misc
- Temperature Operation: 0 to 50°C
- Temperature Storage: - 40 to 125°C
- Humidity:10 TO 90% NON-CONDENSING
- Voltage:3.3/5V/12V,3REN
- Power Dissipation Max:1.7W/4W/23.2W
Key Benefits
- Low CPU Payload : below 25% with 8 PCs of A800P(96 ports) after driver installed, on a Celereon D 2.53Ghz
- Scalable: just add additional cards to extend system
- Be easy to use: module Pin to Pin compatible with Digium’s X100M and S100M. User can use diguim's X100M/S100M module on this card, or use our FXO-100/ FXS-100 Module on TDM400P
- Excellent choice of upgrade Digium’s TDM400P based Asterisk system to A800P, achieving 96 ports density or more in one PC, and protecting user investment by directly making use of user investment on modules of TDM400P
- RoHS compliant
- Certificates: CE, FCC, A-Tick
- trixbox Officially Certified
- elastix Officially Certified
What is Asterisk
- 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:
- Voicemail services with Directory
- Call Conferencing
- Interactive Voice Response
- Call Queuing
- Three-way calling
- Caller ID services
- ADSI, IAX, SIP, H.323, MGCP and SCCP/Skinny
Chapter 2 Software Installation and Configuration
Step 1: Hardware Installation and Setup
A800P series has two RJ45 sockets for A800P on the bracket. There are 4 corresponding modules supported on each jack on main motherboard.
There are 8 pins on the each RJ45 socket. A800P series uses the 2 pins of it as a pair, to connect to your 2-wire telephone line, so each RJ45 socket can connect 4 telephone lines. User has to use a splitter to connect RJ11 normal telephone line. If the card equips with a FXS, please plug in the power supply cable into power supply connector and connecting PSTN line into FXO port and telephone into FXS.
Step 2: Software Installation and Setup
A800P series supports zaptel software device driver on Linux. To use A800P, user should install zaptel and asterisk.
Get all necessary software package
A1200P/A800P series device driver is a signal file named opvxa1200.c. It can be downloaded from http://downloads.openvox.cn/pub/drivers/zaptel/patches/a800_a1200/zaptel_1.2.24_opvxa1200.c
Before installing zaptel 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++
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:
http://bbs.openvox.cn/viewthread.php?tid=874&extra=page%3D1
User can install the driver via the following steps (assuming user has the source code of zaptel device driver installed in /usr/src/zaptel-1.4.XX directory):
1) Check hardware Checking the A800P/A1200P hardware by command: lspci –vvvvv
00:0c.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface Subsystem: Unknown device 9100: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 185 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-
User can see that there is a Tiger Jet chip based device.
2) Downloading and compiling
2.1. Copy opvxa1200.c to /usr/src/zaptel-1.4.XX/kernel.
2.2. Modify /usr/src/zaptel-1.4.XX/makefile:
2.3. Find the line start with TOPDIR_MODULES=
2.4. Add opvxa1200. Before editing, the Makefile should be like this:
TOPDIR_MODULES:=zaptel tor2 torisa wcusb wcfxo wctdm wctdm24xxp \ ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp pciradio \ ztd-loc # ztdummy
After modified, it looks like
TOPDIR_MODULES=zaptel tor2 torisa wcusb wcfxo wctdm wctdm24xxp \ ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp pciradio \ opvxa1200 \
Find the line:
ztmonitor.o: kernel/zaptel.h
After that line, add a new line:
opvxa1200.o : kernel/zaptel.h kernel/wctdm.h
Modify zaptel.sysconfig in /usr/src/zaptel-1.4.XX directory. Add the following line
MODULES="$MODULES opvxa1200" # OPENVOX A1200P
Save the Makefile and exit your editor
3. executing the commands under /usr/src/zaptel-1.4.XX,
./configure make make install make config
4. Installing asterisk
cd /usr/src/asterisk-1.4.XX ./configure make make install make config
5. Detecting and loading modules for opvxa1200:
run command: genzaptelconf –sdvM
The command will automatically generate the zaptel.conf under /etc
After loading zaptel and opvxa1200 driver, user should check the zapata.conf and zapata-channels.conf, make sure the zapata-channels.conf has been included into zapata.conf. Make sure that the context in zapata-channels.conf should exists in extensions.conf
# Span 1: OPVXA1200/0 "OpenVox A1200P Board 1" (MASTER) fxsks=1 fxsks=2 fxoks=3 fxoks=4 # channel 5, WCTDM, no module. # channel 6, WCTDM, no module. # channel 7, WCTDM, no module. # channel 8, WCTDM, no module. # channel 9, WCTDM, no module. # channel 10, WCTDM, no module. # channel 11, WCTDM, no module. # channel 12, WCTDM, no module. # Global data loadzone = us defaultzone = us
the zapata.conf and zapata-channels.conf under /etc/asterisk for you:
[trunkgroups] [channels] context=from-pstn signalling=fxs_ks rxwink=300 ; Atlas seems to use long (250ms) winks usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=no faxdetect=incoming echotraining=800 rxgain=0.0 txgain=0.0 callgroup=1 pickupgroup=1 ;Uncomment these lines if you have problems with the disconection of your analog lines ;busydetect=yes ;busycount=3 immediate=no #include zapata_additional.conf #include zapata-channels.conf
; Span 1: OPVXA1200/0 "OpenVox A1200P Board 1" (MASTER) ;;; line="1 OPVXA1200/0/0" signalling=fxs_ks callerid=asreceived group=0 context=from-pstn channel => 1 context=default ;;; line="2 OPVXA1200/0/1" signalling=fxs_ks callerid=asreceived group=0 context=from-pstn channel => 2 context=default ;;; line="3 OPVXA1200/0/2" signalling=fxo_ks callerid="Channel 3" <6003> mailbox=6003 group=5 context=from-internal channel => 3 callerid= mailbox= group= context=default ;;; line="4 OPVXA1200/0/3" signalling=fxo_ks callerid="Channel 4" <6004> mailbox=6004 group=5 context=from-internal channel => 4 callerid= mailbox= group= context=default
But be sure, sometimes, due to some reasons, it can not work perfectly. Please check the setting of zaptel.conf, if user changes something in zaptel.conf, you can use these commands to reload the driver again:
modprobe zaptel ; load zaptel modprobe opvxa1200 ; load a1200p/a800p driver ztcfg –vvvvvvv ; start the channels
6. Starting asterisk and test calls
Checking the zap channel loading from asterisk console:
asterisk –vvvvvvvgc
Entering asterisk console, run command: zap show channels. If user can see the zap channels, which means the zap channels have been loaded into asterisk.
zhu*CLI> zap show channels
Chan Extension Context Language MOH Interpret
pseudo default default
1 from-pstn default
2 from-pstn default
3 from-internal default
4 from-internal default
User must make sure that the context "from-pstn" and "from-internal" are in extensions.conf, here an example is given:
[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(zap/1/outgoing_number) // dial 200 to dialout from zap 1 exten => 200,2,Hangup
Test environments are:
Centos-5.0 Kernel version: 2.6.18-8.el5 Zaptel: 1.4.12.1 Asterisk: 1.4.20.1 Hardware: OpenVox A800P
Some problems with compiling A1200P/A800P have been summarized and documented into FAQ of A1200P; please check that under A800P/A1200P categories.
Chapter 3 Reference
www.openvox.com.cn
www.digium.com
www.asterisk.org
www.voip-info.org
www.asteriskguru.com
