12
A400P/A400E on DAHDI user manual OpenVox Communication Co. LTD. URL: www.openvox.cn 1 深圳开源通信有限公司 OpenVox A400P/A400E on DAHDI User Manual Date: 02/08/2011 Version: 1.2 A400P A400E

A400P A400E DAHDI User Manual English

  • Upload
    emmun

  • View
    24

  • Download
    2

Embed Size (px)

Citation preview

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

1

深圳开源通信有限公司

OpenVox A400P/A400E on DAHDI

User Manual

Date: 02/08/2011

Version: 1.2

A400P

A400E

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. 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-82535461, 82535095, 82535362, Fax:+86-755-82535174

E-Mail: [email protected] [email protected]

M for Technical Support: [email protected]

Business Hours: 9:00AM-18:00PM from Monday to Friday

URL: www.openvox.cn

Thank You for Choosing OpenVox Products!

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

3

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

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

4

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 Digium’s 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 Digium’s 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

Disclaimers

Asterisk® is a registered trademark of Digium, Inc.

1.2 What is asterisk

The Definition of Asterisk is described as follows:

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. It has support for

three-way calling, caller ID services, ADSI, IAX, SIP, H323 (as both client and gateway),

MGCP (call manager only) and SCCP/Skinny (voip-info.org).

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

5

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 J914(input)and J915(output)interfaces 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.

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

6

Figure 2 Hardware setup

3. Software installation and configuration

A400P/A400E supports DAHDI software device driver on Linux. To make full use of

A400P/A400E, you should download, compile, install and configure DAHDI and asterisk.

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

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

7

like that:

01:02.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface

Subsystem: Device b100:0001

Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step

ping- SERR- FastB2B- DisINTx-

Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort -

<MAbort- >SERR- <PERR- INTx-

Latency: 64 (250ns min, 32000ns max)

Interrupt: pin A routed to IRQ 225

Region 0: I/O ports at c800 [size=256]

Region 1: Memory at dedff000 (32-bit, non-prefetchable) [size=4K]

Capabilities: [40] Power Management version 2

Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0+,D1-,D2+,D3ho

t+,D3cold+)

Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-

Kernel driver in use: wctdm

Kernel modules: wctdm, hisax

Figure 3 Hardware detection

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 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++

If any of those packages is installed, system indicates nothing to do.

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.

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

8

# 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:

# echo "#include dahdi-channels.conf" >>

/etc/asterisk/chan_dahdi.conf

FXO ports use FXS signaling, while FXS ports adopt FXO signaling. A part of system.conf,

which is the basic channel configuration file, is displayed.

# Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)

fxsks=1

fxsks=2

fxoks=3

fxoks=4

# Global data

loadzone = us

defaultzone = us

Figure 4 A part of system.conf

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:

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

9

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

Figure 5 A part of dahdi-channels.conf

2. Load opvxa24xx driver

# modprobe dahdi

# modprobe wctdm

# dahdi_cfg –vvvvvvvvvv

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

10

DAHDI Version: 2.3.0

Echo Canceller(s):

Configuration

======================

Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 01)

Channel 02: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 02)

Channel 03: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 03)

Channel 04: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to none

Setting echocan for channel 2 to none

Setting echocan for channel 3 to none

Setting echocan for channel 4 to none

Figure 6 Channel map

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.

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

11

Additional function

Users should run command“cat /proc/interrupts”to 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

A400P/A400E on DAHDI user manual

OpenVox Communication Co. LTD. URL: www.openvox.cn

12

5. Appendix