A400P
A400E
URL: www.openvox.cn
OpenVox Communication Co.Ltd. Address: F/3, Block No.127, Jindi Industrial Zone, Shazui Road, Futian district, Shenzhen, Guangdong 518048, China Tel:+86-755-82535461, 82535095, 82535362, Fax:+86-755-82535174 E-Mail: sales@openvox.cn support@openvox.cn M for Technical Support: support@openvox.cn Business Hours: 9:00AM-18:00PM from Monday to Friday URL: www.openvox.cn
Content
Test environments ........................................................................................................ 4 1. Overview ................................................................................................................ 4 1.1 What is A400P/A400E ...................................................................................... 4 1.2 What is asterisk ................................................................................................. 4 2. Hardware setup ..................................................................................................... 5 3. Software installation and configuration ............................................................. 6 3.1 Download .......................................................................................................... 6 3.2 Installtion .......................................................................................................... 6 3.3 Configuration .................................................................................................... 8 4. Reference ............................................................................................................. 11 5. Appendix .............................................................................................................. 12
URL: www.openvox.cn
Test environments
CentOS-5.6 Kernel version: 2.6.18-238.12.1.el5 DAHDI: dahdi-linux-complete-2.3.0.1+2.3.0 Asterisk: 1.6.2.16.1 Hardware: OpenVox A400P/A400E
1. Overview
1.1 What is A400P/A400E
A400P/A400E is a modular analog telephony interface product. It is designed to be hardware compatible with Digiums TDM400p. A400P/A400E must be made up 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 Digiums X100M and S100M. Key Benefits: Scalable: just add additional cards to extend system Support PCI for A400P and PCI Express for A400E Be easy to use: full software and hardware compatible with Digium's TDM400P. User can use Diguim's X100M/S100M module on this card, or use our FXO-100/ FXS-100 Module on TDM400P RoHS Compliant Certifications: A-Tick, CE and FCC Trixbox & Elastix Officially Certified
Figure 1 Topology
2. Hardware setup
There are some matters need your attention before using A400P/A400E, please check that: Power off your pc, remember unplug the AC power cable; Insert A400P/A400E into a 3.3V or 5.0V PCI slot or PCI express slot; If you found J914inputand J915outputinterfaces on the card, it means the card supports clock line, for the detail information, please refer to the following link http://bbs.openvox.cn/viewthread.php?tid=874&extra=page%3D1 Please plug PSTN line into FXO port and normal telephone line corresponds to FXS port Plug back the AC power cable, and power on PC. After power on, four LEDs of the board left will be light and not flash.
URL: www.openvox.cn
3.1 Download
Download DAHDI package to the directory of /usr/src/ from openvox official website http://downloads.openvox.cn/pub/drivers/dahdi-linux-complete/releases/1.3.2/openvox_dahdi -linux-complete-2.3.0.1+2.3.0.tar.gz asterisk software package is also available from digium official website: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6xxx.tar.gz Excute commands below to download and uncompress these two packages. # cd /usr/src/ #_wget_http://downloads.openvox.cn/pub/drivers/dahdi-linux-com plete/releases/1.3.2/openvox_dahdi-linux-complete-2.3.0.1+2.3. 0.tar.gz #_wget_http://downloads.asterisk.org/pub/telephony/asterisk/re leases/asterisk-1.6xxx.tar.gz # tar -xvzf openvox_dahdi-linux-complete-2.3.0.1+2.3.0.tar.gz # tar xvzf asterisk-1.6xxx.tar.gz
3.2 Installtion
1. Detect hardware by execute command: lspci vvvv Check the outcome and confirm your system has recognized A400P. If identified, outputs are
OpenVox Communication Co. LTD. URL: www.openvox.cn
2. Compile Note that if there is no kernel source in the system, user should install them. User can run yum like: yum install kernel-devel. It is time to check for the availability of some other packages: # # # # # # # # # # # yum yum yum yum yum yum yum yum yum yum yum install install install install install install install install install install install bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++
Change directory to dahdi-linux-complete-XX, perform command below one by one. # # # # cd /usr/src/dahdi-linux-complete-XX make make install make config
If there is something wrong after make, please refer to http://bbs.openvox.cn/viewthread.php?tid=1557&extra=page%3D1 Then run make again, if successfully, you are going to install asterisk next.
OpenVox Communication Co. LTD. URL: www.openvox.cn
A400P/A400E on DAHDI user manual # # # # # cd asterisk-1.6xxx ./configure make make install make samples
3.3 Configuration
1. After compile and install dahdi and asterisk, please run: # dahdi_genconf If there is any error, please trace the cause. Until without any errors are displayed, you could execute dahdi_genconf again, then go to next step. By running dahdi_genconf, it will generate /etc/dahdi/system.conf and etc/asterisk/dahdi-channels.conf. Check automatically generated files information is agree with your hardware setup, if not, you should modify to your requirements. Confirm dahdi-channels.conf is included in chan_dahdi.conf, otherwise, run command:
# Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER) fxsks=1 fxsks=2 fxoks=3 fxoks=4 # Global data loadzone defaultzone = us = us
In order to match your country pattern, you need to change parameters loadzone and defaultzone to your country. For example, your system is in CHINA, then, you would like them change to: loadzone = cn defaultzone = cn Meanwhile, you also need to modify another parameter, which is in file /etc/asterisk/indications.conf:
OpenVox Communication Co. LTD. URL: www.openvox.cn
A400P/A400E on DAHDI user manual country=cn A part of file /etc/asterisk/dahdi-channels.conf is showed as below. (Modification, if it is not agree with the hardware setup)
; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER) ;;; line="1 WCTDM/4/0 FXSKS" signalling=fxs_ks callerid=asreceived group=0 context=from-pstn channel => 1 callerid= group= context=default ;;; line="2 WCTDM/4/1 FXSKS" signalling=fxs_ks callerid=asreceived group=0 context=from-pstn channel => 2 callerid= group= context=default ;;; line="3 WCTDM/4/2 FXOKS" signalling=fxo_ks callerid="Channel 3" <4003> mailbox=4003 group=5 context=from-internal channel => 3 callerid= mailbox= group= context=default ;;; line="4 WCTDM/4/3 FXOKS" signalling=fxo_ks callerid="Channel 4" <4004> mailbox=4004 group=5 context=from-internal channel => 4 callerid= mailbox= group= context=default
URL: www.openvox.cn
Channel map: Channel Channel Channel Channel 01: 02: 03: 04: FXS FXS FXO FXO Kewlstart Kewlstart Kewlstart Kewlstart (Default) (Default) (Default) (Default) (Echo (Echo (Echo (Echo Canceler: Canceler: Canceler: Canceler: none) none) none) none) (Slaves: (Slaves: (Slaves: (Slaves: 01) 02) 03) 04)
4 channels to configure. Setting Setting Setting Setting echocan echocan echocan echocan for for for for channel channel channel channel 1 2 3 4 to to to to none none none none
3. Start asterisk by executing command: # asterisk -vvvvvvvvvgc If asterisk is already activate, run asterisk r instead. localhost*CLI> dahdi show channels If dahdi channels are found, it means dahdi channels have been loaded into asterisk. 4. Edit dialplan Users must make sure that the context from-pstn and from-internal are in extensions.conf, here an example is given: # vim /etc/asterisk/extensions.conf
[from-pstn] exten => s,1,Answer() // answer an inbound call Exten => s,n,Playback(cc_welcome) Exten => s,n,Hangup() [from-internal] exten => 200,1,Dial(dahdi/1/outgoing_number) // dial 200 to dialout from dahdi channel 1 exten => 200,2,Hangup
After saving your dialplan, please run asterisk r, then execute reload in the CLI. Next you are able to make calls.
URL: www.openvox.cn
10
Additional function
Users should run commandcat /proc/interruptsto check A400P/A400E has independent interrupt. If A400P/A400E shares interrupt with other device, it may cause some problems even cannot work normally. While A400P/A400E allows users to modify interrupt pin during firmware upgrade for avoid conflict, please visit the following link for details: http://downloads.openvox.cn/pub/misc/opvx-update%20user%20manual.pdf
4. Reference
www.openvox.cn www.digium.com www.asterisk.org www.voip-info.org www.asteriskguru.com www.elstix.org Tips
Any questions during installation or usage, please consult in our forum or look up for answers from the following websites:
http://bbs.openvox.cn/ http://wiki.openvox.cn/index.php/%E9%A6%96%E9%A1%B5
URL: www.openvox.cn
11
5. Appendix
URL: www.openvox.cn
12