Xorcom USA 23309 North 17 th Drive, Suite #100 Phoenix, AZ 85027 USA Tel: 866-XORCOM1/866-967-2661 [email protected]www.xorcom.com Xorcom Ltd. Misgav Industrial Park, POB 60 D.N. Misgav 20179, Israel Tel: +972-4-9951999 [email protected]Software for Astribank 2 Document Version: 1.12 The new Astribank models, known as „Astribank 2‟, require an advanced version of DAHDI/Zaptel. When appropriate software packages are installed, it is possible to use combinations of the old (Astribank) and the new (Astribank 2) devices connected to the same Asterisk server. Contents How to Check the Astribank Model ...................................................................... 2 Elastix Versions ............................................................................................. 2 Elastix 1.5................................................................................................. 2 Elastix 1.3................................................................................................. 3 Elastix <1.3 ............................................................................................... 6 trixbox CE Versions ......................................................................................... 7 trixbox CE 2.8.0 .......................................................................................... 7 trixbox CE 2.6.2.3 ....................................................................................... 7 trixbox CE 2.6.2.2 ....................................................................................... 7 trixbox CE < 2.6.2.2 ..................................................................................... 8 Building from Sources ................................................................................... 9 Building DAHDI from the Sources ...................................................................... 9 Building Zaptel 1.4.x from the Sources ............................................................... 9 Building Zaptel 1.2.x from the Sources .............................................................. 10 BRIStuff ..................................................................................................... 10 DAHDI Notes ................................................................................................ 10 How to Reset the Astribank 2 Device When DAHDI is Used ....................................... 10 How to Configure the DAHDI Channels .............................................................. 11 Zaptel Notes................................................................................................ 14 How to Reset the Astribank 2 Device When Zaptel is Used ....................................... 14 How to Configure the Zaptel Channels .............................................................. 15
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Xorcom USA 23309 North 17th Drive, Suite #100 Phoenix, AZ 85027 USA Tel: 866-XORCOM1/866-967-2661 [email protected]
www.xorcom.com
Xorcom Ltd. Misgav Industrial Park, POB 60 D.N. Misgav 20179, Israel Tel: +972-4-9951999 [email protected]
Software for Astribank 2 Document Version: 1.12
The new Astribank models, known as „Astribank 2‟, require an advanced version of
DAHDI/Zaptel. When appropriate software packages are installed, it is possible to use
combinations of the old (Astribank) and the new (Astribank 2) devices connected to the same
Asterisk server.
Contents How to Check the Astribank Model ...................................................................... 2
How to Reset the Astribank 2 Device When Zaptel is Used ....................................... 14
How to Configure the Zaptel Channels .............................................................. 15
Software For Astribank 2 Page 2 of 19
Xorcom USA 23309 North 17th Drive, Suite #100 Phoenix, AZ 85027 USA Tel: 866-XORCOM1/866-967-2661 [email protected]
www.xorcom.com
Xorcom Ltd. Misgav Industrial Park, POB 60 D.N. Misgav 20179, Israel Tel: +972-4-9951999 [email protected]
How to Check the Astribank Model
Following are indications of the new Astribank hardware models:
a) For all new Astribank devices and XR1000/2000/3000 servers, the serial number starts from {X,U}1036300.
b) The 1U Astribank models now have two USB sockets on the rear panel (instead of one). c) The Astribank USB Product ID is 116n. USB Product IDs of the old Astribank models are
113n, 114n and 115n. For example, output of the lsusb utility on a computer with the new Astribank connected would be as follows: # lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID e4e4:1162
Bus 004 Device 001: ID 0000:0000
Elastix Versions
Elastix 1.5
The latest Elastix DAHDI packages (dahdi-2.2.0.2-4 and later) already contain the updated
Astribank drivers. It is possible to check the currently installed DAHDI packages version by
using the following command:
rpm –qa | grep dahdi
If the standard, “plain vanilla” Elastix 1.5 is installed, then it is necessary to upgrade the
DAHDI RPM packages in order to provide support for Asterisk 2 devices.
For Non-Astribank BRI Implementations With Non-Xorcom Servers
If you don‟t use Astribank BRI and you don‟t use a Xorcom Asterisk server
(XR1000/2000/3000):
1. Upgrade your Elastix to the latest packages
yum update
2. Reset the Astribank devices as described in the “How to Reset Astribank 2 Device
When DAHDI is Used” section below.
Software For Astribank 2 Page 3 of 19
Xorcom USA 23309 North 17th Drive, Suite #100 Phoenix, AZ 85027 USA Tel: 866-XORCOM1/866-967-2661 [email protected]
www.xorcom.com
Xorcom Ltd. Misgav Industrial Park, POB 60 D.N. Misgav 20179, Israel Tel: +972-4-9951999 [email protected]
3. If necessary, configure the DAHDI channels as described in the “How to Configure
DAHDI Channels” section below.
For Astribank BRI and/or Xorcom Server Implementations
If you use Astribank BRI and/or use a Xorcom Asterisk appliance server (XR1000/2000/3000):
1. In the /etc/yum.repos.d/elastix.repo file define parameter 'exclude' for
[elastix-base] and [elastix-updates] repositories, as follows:
Xorcom USA 23309 North 17th Drive, Suite #100 Phoenix, AZ 85027 USA Tel: 866-XORCOM1/866-967-2661 [email protected]
www.xorcom.com
Xorcom Ltd. Misgav Industrial Park, POB 60 D.N. Misgav 20179, Israel Tel: +972-4-9951999 [email protected]
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID e4e4:1162
Bus 004 Device 001: ID 0000:0000
4. Start DAHDI and Asterisk:
/etc/init.d/dahdi start
amportal start
How to Configure the DAHDI Channels
You can configure the DAHDI channels either manually or by using the detect_zap script
that is provided by the freepbx-module-zapauto package. The minimum version number
of freepbx-module-zapauto package is 0.7.3-1.
1. Define the desired order of the DAHDI channels to be registered.
By default, the channels related to the installed DAHDI equipment will be registered in the
DAHDI framework in the following order:
a) all non-Astribank related channels (e.g., Digium PCI boards, etc.) b) all Astribank related channels. All of the connected Astribank devices will be sorted
alphabetically, based on the USB connector strings.
So, if you swap Astribank devices or add a new device, then the order of the channels will get
mixed up. In order to avoid this problem and put the DAHDI channels registration under
control, you can list the device labels or/and USB connector strings in the desired order in the
/etc/dahdi/xpp_order file. You can see the Astribank labels and USB connectors in the
output of the dahdi_hardware -v command. For example:
Xorcom USA 23309 North 17th Drive, Suite #100 Phoenix, AZ 85027 USA Tel: 866-XORCOM1/866-967-2661 [email protected]
www.xorcom.com
Xorcom Ltd. Misgav Industrial Park, POB 60 D.N. Misgav 20179, Israel Tel: +972-4-9951999 [email protected]
XBUS-02/XPD-20: FXS Span 3
XBUS-02/XPD-30: FXS Span 4
The simplest way to create the /etc/dahdi/xpp_order file is to run
dahdi_genconf xpporder
and then to edit the file manually. Following is an example of the file content:
# Autogenerated by /usr/sbin/dahdi_genconf on Sun Apr 26 09:13:25 2009
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
#
# This is an optional configuration file for ordering
# Dahdi registration.
#
# It is read from /etc/dahdi/xpp_order. This location
# may be overwritten via the environment variable XPPORDER_CONF
#
# Lines may contain:
# - The Astribank label (verbatim)
# - The Astribank connector string (prefixed with @)
# Ordering number of each listed Astribank is determined
# by its position in this file.
# Astribanks not listed in this file, get an ordering
# number of 999 (last).
#
# Astribanks with same ordering number are sorted by their
# connectors (to preserve legacy behavior).
#
# Examples:
# usb:TWS-08
# @usb-0000:06:02.2-2 usb:000169
# @usb-0000:00:03.3-5 usb:0000149
# @usb-0000:00:03.3-4
Please note that channels of the Astribank devices that are not listed in the file will be
registered following the Astribanks listed in the xpp_order file, based on the order of their
USB connector strings.
Software For Astribank 2 Page 13 of 19
Xorcom USA 23309 North 17th Drive, Suite #100 Phoenix, AZ 85027 USA Tel: 866-XORCOM1/866-967-2661 [email protected]
www.xorcom.com
Xorcom Ltd. Misgav Industrial Park, POB 60 D.N. Misgav 20179, Israel Tel: +972-4-9951999 [email protected]
2. Install the freepbx-module-zapauto
If the xorcom.repo repository is configured on the server then you can install the package
as follows:
yum install freepbx-module-zapauto
Alternatively, you can download the latest freepbx-module-zapauto package from
http://updates.xorcom.com/astribank/elastix/repo.
3. Now you can perform the hardware detection. Be aware that the command below will
remove all DAHDI related settings from the server. Please read the explanation below
before you run the following detect_zap script:
/var/lib/asterisk/bin/detect_zap
The detect_zap performs the following actions:
a) removes all of current DAHDI-related configuration settings b) performs DAHDI hardware detection
c) puts all trunk channels (FXO, PRI, BRI) in /etc/asterisk/chan_dahdi.conf d) creates FreePBX extensions for DAHDI channels (FXS). By default,
detect_zap will assign consecutive extension numbers starting with 401 to each DAHDI extension it detects. If those numbers are already in use by non DAHDI extensions, detect_zap will fail to work properly. You can define a new starting extension number in
variable ZAP_FIRST_CHANNEL in the /etc/amportal.conf file. For example, if you
want detect_zap to create extensions with numbers starting with 1001 then you must define: ZAP_FIRST_CHANNEL=1001
e) causes the FreePBX to re-build the configuration including
chan_dahdi_additional.conf (where DAHDI extensions are configured)
f) rebuilds /var/lib/asterisk/bin/astdb g) assigns all trunk channels (FXO, PRI) to group 0, and creates a trunk in FreePBX h) creates an outbound rule in the FreePBX configuration with dial pattern '9|.'
Other Astribank Configuration Parameters
For a detailed explanation of other Astribank configuration parameters, please refer to the
README.Astribank file, found in the sources of DAHDI Tools
(http://svn.digium.com/svn/dahdi/tools/trunk/xpp/README.Astribank). We have chosen to