OpenVox A810P, A810E, AE810E, AE810P User Manual

Page 1
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
1
OpenVox-Best Cost Effective Asterisk Cards
OpenVox A810E/A810P/AE810E/AE810P User Manual
A810P/A810E
Date:05/26/2011
Version: 1.3
Page 2
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
2
OpenVox-Best Cost Effective Asterisk Cards
OpenVox Communication Co. Ltd.
Address: F/3, Block No.127, Jindi Industrial Zone,
Shazui Road, Futian district, ShenZhen, Guangdong 518048, China
Tel:+86-755-82535095,82535461,Fax:+86-755-82535174
E-Mailsales@openvox.cn support@openvox.cn
M for Technical Support: support@openvox.cn
Business Hours: 9:00AM-18:00PM from Monday-Friday
URLwww.openvox.cn
Thank You for Choosing OpenVox Products!
Page 3
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
3
Table of Contents
1. Overview ................................................................................................. 4
1.1 What is A810P/A810E ....................................................................................... 4
1.2 What is Asterisk: ............................................................................................... 5
2. Hardware Setting ..................................................................................... 6
3. Software Installation and Configuration ....................................................... 7
3.1 Download asterisk, dahdi, driver and firmware........................................ 7
3.2 Modify the configure files........................................................................... 7
3.3 Installation ................................................................................................. 9
3.4 Configure .................................................................................................. 11
4. References ..............................................................................................19
Page 4
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
4
1. Overview
1.1 What is A810P/A810E
A810P/A810E is a modular analog telephony interface product. AE810P/AE810E is A810P/A810E with EC module. It is designed to build IP PBX.
A810P/AE810P or A810E/AE810E must be used with FXO-400 or FXS-400 together to build a workable system. AE810P/AE810E has EC module, which must be used with FX0-400 or FXS-400 together.
Key Benefits: Low CPU Payload : Firmware accelerate I/O access achieve high stability and highly decreased cpu payload Scalable: Just add additional cards to extend system Bus Master: Operation speed up to 132Mbytes/sec Echo cancellation: Support high quality octasic echo cancellation DSP, each channel independent of 128ms or 1024 taps echo cancellation
RoHS compliant Certificates: CE, FCC
Misc: Temperature Operation: 0 to 50°C Temperature Storage: -40 to 125°C Humidity: 10 TO 90% NON-CONDENSING
Disclaimers Asterisk® is a registered trademark of Digium, Inc.
Page 5
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
5
1.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.
Figure 1: Asterisk_OpenVox Setup
Asterisk provides Voicemail services with Directory, Call Conferencing, Interactive Voice Response, Call Queuing. It has support for three-way calling, caller ID services, ADSI, IAX, SIP, H.323 (as both client and gateway), MGCP (call manager only) and SCCP/Skinny(voip-info.org).
Page 6
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
6
2. Hardware Setting
To set the A810P/AE810P, user MUST go through these steps:
1. Checking power supply: Board must be provided power, please plug the power supply cable into power supply connector. Otherwise, you will not be able to use. (refer figure 2 below)
Figure 2: A810E/AE810E Hardware Configuration
Module 1
Module 2
Port 1
Port 8
Port 7
Port 6
Port 5
Port 4
Port 3
Port 2
SMEC V1.2
Power Supply
Page 7
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
7
3. Software Installation and Configuration
A810P/AE810P supports dahdi software device driver on Linux. To use A810P/AE810P, user must download, edit, install and configure dahdi and asterisk.
3.1 Download asterisk, dahdi, driver and firmware
1. Download asterisk from www.asterisk.org Right here, take asterisk-1.8.0 for an example:
http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.0.tar.gz
2. There are two methods to download dahdi source.
1) Download dahdi from openvox website, which has included driver of
A810P/AE810P, user doesn’t need to modify any files.
http://downloads.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-lin ux-complete-current.tar.gz (if you select this method, just skip to step 3.3 after
you finish this step)
2) Download dahdi from asterisk official website: downloads.asterisk.org, then user needs to download the driver patch of A810/AE810 as well. The patch is located here:
http://downloads.openvox.cn/pub/drivers/dahdi-patches/a2410p/opvxa24xx_dahd i-linux.tar.gz
There is a directory named opvxa24xx after you untar this package , please copy
the whole directory to /usr/src/dahdi-linux-xxx/drivers/dahdi/. And you have to modify some configure files before you start compiling dahdi.
3.2 Modify the configure files
There are some steps here, make sure you have already modified them before
you compile dahdi.
A. Forward to directory /usr/src/dadhi-linux-xxx/build_tools, and modify file
live_dahdi like this:
Figure 3: live_dahdi screenshot
B. Forward to directory /usr/src/dahdi-linux-xxx/drivers/dahdi, and modify file
Kbuild like this:
Page 8
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
8
Figure 4: Kbuild screenshot
C. Forward to directory /usr/src/dahdi-linux-xxx/drivers/dahdi, and insert the
following info in the red circle into the file Kconfig near line 156.
Figure 5: Kconfig screenshot
D. Forward to directory
/usr/src/dahdi-tools-xxx/xpp/perl_modles/Dahdi/Hardware, and add the following info to the file PCI.pm.
Figure 6: PCI.pm screenshot
E. Forward to directory /usr/src/dahdi-tools-xxx/xpp/perl_modules/Dahid, and
modify file Chans.pm like this:
Figure 7: Chans.pm screenshot
F. Forward to directory /usr/src/dahdi-tools-xxx, and add the following info to file
Page 9
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
9
modules.sample.
Figure 8: modules.sample screenshot
G. Forward to directory /usr/src/dahdi-tools-xxx, and modify blacklist.sample like
this:
Figure 9: blacklist.sample screenshot
Note: If you select CentOS 5.6 you have to patch dahdi, please see here for the patch.
3.3 Installation
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 it. 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 // make sure the version is higher than 4.0 rpm -q gcc-c++ rpm –q libxml2
If any of those packages are not installed, please install them by using yum.
yum install bison yum install bison-devel yum install ncurses yum install ncurses-devel
Page 10
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
10
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++ yum install libxml2
User can install the driver via the following steps (assuming user has the source code of dahdi device driver installed in /usr/src/dahdi-2.2.XX directory):
1. Checking the A810P/AE810P hardware by command:
lspci –vvvvv
From the following, user can see that there is a device called communication controller interface be found.
Figure 10: hardware detect
2. Compiling and installing dahdi
1) a. If user uses dahdi-linux-complete-xxx. tar.gz, execute these commands:
cd /usr/src/
tar –xvzf dahdi-linux-complete-xxx.tar.gz
cd dahdi-linux-complete-xxx make make install make config
b. If user uses dahdi-linux-xxx.tar.gz and dahdi-tools-xxx.tar.gz, execute these
commands: (make sure you have already finished step 3.2 before you carry out the following commands).
cd /usr/src
tar –xvzf dahdi-linux-xxx.tar.gz
cd dahdi-linux-xxx,
make
make install
cd /usr/src/
tar –xzvf dahdi-tools-xxx.tar.gz cd dahdi-tools-xxx, ./configure
Page 11
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
11
make
make install
make config
2) Installing asterisk
cd /usr/src/
tar –xzvf asterisk-xxx.tar.gz
cd asterisk-xxx configure make make install make samples
3.4 Configure
1. Loading modules for opvxa24xx:
modprobe dahdi
modprobe opvxa24xx opermode=YOUR COUNTRY
//the driver name is the same
as //opvxa24xx
openvox_dahdi-linux-complete 2.2.0 or higher versions allows user to adjust how
long to initiate once IRQ. User is able to adjust time to initiate IRQ by the following way:
modprobe opvxa24xx opermode=YOUR COUNTRY ms_per_irq=2
ms_per_irq=2 means every 2 millisecond initiate once IRQ.
The valid values of ms_per_irq are 1,2,4,8,16, the default value is 1.
dahdi-linux-complete-2.4.0 or higher version supports this function.
Execute
dmesg
command to check if you have made the EC module worked. If user uses AE810P/AE810E, from figure 11 below, user will be able to see EC module has been detected by the system.
Page 12
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
12
Figure 11: EC detection
2. Checking the configure files Run the command
vi /etc/dahdi/genconf_parameters
to disable the softecho parameter. If users use AE810P, please set echo_can to none as following: echo_can none If users use A810P, just ignore that step above. Then run these commands:
dahdi_genconf dahdi_cfg –vvvv
The output might be the same as the following:
Page 13
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
13
Figure 12: dahdi_cfg –vvvv screenshot
The command dahdi_genconf will automatically generate the system.conf under directory /etc/dahdi and dahdi-channels.conf under /etc/asterisk. Please check the setting of system.conf, it looks like the following:
Page 14
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
14
Figure 13: system.conf
In order to match your country pattern, you will need to change the parameters
load zone and default zone to your country. For example, your system is in CHINA, then, you will change their value like this:
loadzone = cn defaultzone = cn
Meanwhile, you also need to modify another parameter: country in file /etc/asterisk/indications.conf
Figure 14: indications.conf
After loading dahdi and opvxa24xx driver, user should check the chan_dahdi.conf
and dahdi-channels.conf under /etc/asterisk. Please make sure dahdi-channels.conf has been included into chan_dahdi.conf. If not, run the command:
echo "#include dahdi-channels.conf" >> /etc/asterisk/chan_dahdi.conf
Make sure that the context in dahdi-channels.conf should exist in extensions.conf. File dahdi-channels.conf should look like as the following: FXO ports use FXS signaling, the configure file looks like this:
Page 15
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
15
FXS ports use FXO signalling, the configure file looks like this:
Figure 15: dahdi-channels.conf
3. Starting asterisk and test calls Checking the dahdi channel loading from asterisk console:
asterisk –vvvvvvvgc
Entering asterisk console, run command:
dahdi show channels
. If dahdi channels
can be shown, which means the dahdi channels have been loaded into asterisk.
Page 16
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
16
Figure 16: dahdi show channels
When user makes an inbound call, CLI will show as the following:
Figure 17: inbound call
When user makes an outbound call, CLI will show as the following:
Figure 18: outbound call
The status of channel looks like the following. If user uses AE810P, EC Status of active channel should be ON; otherwise it would be OFF.
Page 17
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
17
Figure 19: channel status
Notes: User can use command cat /proc/interrupts to confirm A810P/AE810P has independent IRQ. If A810P/AE810P shares IRQ with other device. To avoid IRQ conflict, A810P/AE810P enable user to adjust pin number when update firmware, please refer this manual for more details.
http://downloads.openvox.cn/pub/misc/opvx-update_user_manual_en.pdf
Page 18
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
18
Test environments are: CentOS-5.6 Kernel version: 2.6.18-238.el5 Dahdi: dahdi-linux-complete-2.4.0+2.4.0 Asterisk: 1.8.0 Hardware: OpenVox A810P/AE810P
Page 19
User Manual
OpenVox Communication Co. Limited. URL: www.openvox.cn
19
4. References
www.openvox.cn
www.digium.com
www.asterisk.org
www.voip-info.org
www.asteriskguru.com
Loading...