Software for Astribank 2 Document Version: 1.12
Total Page:16
File Type:pdf, Size:1020Kb
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 Xorcom USA Xorcom Ltd. 23309 North 17th Drive, Suite #100 Misgav Industrial Park, POB 60 Phoenix, AZ 85027 USA D.N. Misgav 20179, Israel Tel: 866-XORCOM1/866-967-2661 Tel: +972-4-9951999 [email protected] www.xorcom.com [email protected] Software For Astribank 2 Page 2 of 19 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. Xorcom USA Xorcom Ltd. 23309 North 17th Drive, Suite #100 Misgav Industrial Park, POB 60 Phoenix, AZ 85027 USA D.N. Misgav 20179, Israel Tel: 866-XORCOM1/866-967-2661 Tel: +972-4-9951999 [email protected] www.xorcom.com [email protected] Software For Astribank 2 Page 3 of 19 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: exclude=elastix-mysqldbdata *dahdi *dahdi-devel asterisk asterisk-devel asterisk-sounds* libpri* 2. Download and install the Xorcom repository encryption public key: cd /tmp wget http://updates.xorcom.com/astribank/elastix/repo/RPM-GPG- KEY-xorcom rpm --import RPM-GPG-KEY-xorcom 3. Download the Xorcom repository configuration file: cd /etc/yum.repos.d wget http://updates.xorcom.com/astribank/elastix/xorcom.repo 4. Update the software: yum update *dahdi* 5. Reset the Astribank devices as described in the “How to Reset Astribank 2 Device When DAHDI is Used” section below. 6. If necessary, configure the DAHDI channels as described in the “How to Configure DAHDI Channels” section below. Elastix 1.3 There are two ways to provide Astribank 2 support for users of Elastix 1.3: a) Upgrade the Zaptel packages as follows: cd /tmp wget http://updates.xorcom.com/astribank/elastix/repo/zaptel- 1.4.12.9.svn.4651-2.i686.rpm wget http://updates.xorcom.com/astribank/elastix/repo/zaptel-devel- 1.4.12.9.svn.4651-2.i686.rpm Xorcom USA Xorcom Ltd. 23309 North 17th Drive, Suite #100 Misgav Industrial Park, POB 60 Phoenix, AZ 85027 USA D.N. Misgav 20179, Israel Tel: 866-XORCOM1/866-967-2661 Tel: +972-4-9951999 [email protected] www.xorcom.com [email protected] Software For Astribank 2 Page 4 of 19 wget http://updates.xorcom.com/astribank/elastix/repo/kernel-module- zaptel-1.4.12.9.svn.4651-2_2.6.18_53.1.19.el5.i686.rpm rpm -Uvh zaptel-1.4.12.9.svn.4651-2.i686.rpm \ zaptel-devel-1.4.12.9.svn.4651-2.i686.rpm \ kernel-module-zaptel-1.4.12.9.svn.4651-2_2.6.18_53.1.19.el5.i686.rpm Reset the Astribank devices as described in the “How to Reset the Astribank 2 Device when Zaptel is Used” section below. If necessary, configure the Zaptel channels as described in the “How to Configure Zaptel Channels” section below. b) Upgrade to Elastix 1.5 and the latest DAHDI & Asterisk packages using files from the Xorcom repository. Upgrading to Elastix 1.5 Follow the steps below to upgrade from Elastix 1.3 to Elastix 1.5. It is strongly recommended that you backup your current server using the Xorcom Rapid Recovery tool (http://www.xorcom.com/optional-extras/rapid-recovery.html). Also, please be aware that you will need to configure DAHDI channels after performing the upgrade. Unfortunately, no configuration porting tools exist. 1. In the /etc/yum.repos.d/elastix.repo file define parameter 'exclude' for [elastix] and [elastix-updates] repositories as follows: exclude=elastix-mysqldbdata *dahdi *dahdi-devel asterisk asterisk- devel asterisk-sounds* libpri* 2. Download and install the Xorcom repository encryption public key: cd /tmp wget http://updates.xorcom.com/astribank/elastix/repo/RPM-GPG-KEY- xorcom rpm --import RPM-GPG-KEY-xorcom 3. Download the Xorcom repository configuration file: cd /etc/yum.repos.d wget http://updates.xorcom.com/astribank/elastix/xorcom.repo Xorcom USA Xorcom Ltd. 23309 North 17th Drive, Suite #100 Misgav Industrial Park, POB 60 Phoenix, AZ 85027 USA D.N. Misgav 20179, Israel Tel: 866-XORCOM1/866-967-2661 Tel: +972-4-9951999 [email protected] www.xorcom.com [email protected] Software For Astribank 2 Page 5 of 19 4. Update the software: yum update 5. After the kernel update, the XEN kernel version will be set as the default option. In order to fix the problem, edit file /boot/grub/menu.lst and define the parameter 'default' in such a way that it will point to the 'title CentOS (2.6.18-92.1.22.el5)'. Please note that the kernels are numbered starting from 0. For example: default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz #hiddenmenu title CentOS (2.6.18-92.1.22.el5) root (hd0,0) kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ initrd /initrd-2.6.18-92.1.22.el5.img title CentOS (2.6.18-92.1.22.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-92.1.22.el5 module /vmlinuz-2.6.18-92.1.22.el5xen ro root=LABEL=/ module /initrd-2.6.18-92.1.22.el5xen.img title Elastix (2.6.18-53.1.19.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-53.1.19.el5 module /vmlinuz-2.6.18-53.1.19.el5xen ro root=LABEL=/ module /initrd-2.6.18-53.1.19.el5xen.img title Elastix-base (2.6.18-53.1.19.el5) root (hd0,0) kernel /vmlinuz-2.6.18-53.1.19.el5 ro root=LABEL=/ initrd /initrd-2.6.18-53.1.19.el5.img As you can see, the 'default=0' points to the correct kernel. 6. Reboot the server. 7. Reset the Astribank devices as described in the “How to Reset Astribank 2 Device When DAHDI is Used” section below. Xorcom USA Xorcom Ltd. 23309 North 17th Drive, Suite #100 Misgav Industrial Park, POB 60 Phoenix, AZ 85027 USA D.N. Misgav 20179, Israel Tel: 866-XORCOM1/866-967-2661 Tel: +972-4-9951999