Trixbox High-Availability with fonebridge Tutorial

Similar documents
Building Elastix-1.3 High Availability Clusters with Redfone fonebridge2, DRBD and Heartbeat

FONEBridge2 Installation Guide

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

High Availability of IBM Security Directory Server using Heartbeat A highly available authentication system

LAN Setup Reflection

OpenVox DE210E/DE210P DE410E/DE410P User Manual

Let us ping! First we will learn the Hello World of a networked machine.

XE2000/XE3000 IP-PBX: Getting Started Guide Package Contents

Chapter 1 Introduction

Etross-1200P User s Manual

New System Setup Guide

Upgrading from TrafficShield 3.2.X to Application Security Module 9.2.3

ELASTIX HIGH AVAILABILITY (HA) MODULE

LAN Setup Reflection. Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external?

Transcoding Card CT200E - User Manual

Network Configuration for Cisco UCS Director Baremetal Agent

Configuring a Standalone VCL Environment using VMware Server 2.0

HEARTBEAT INTRODUCTION AND THEORY

How to Install AX2G4A/AX4G with Elastix2.0.3/Trixbox


Application Note Asterisk BE with SIP Trunking - Configuration Guide

interfaces. If you are configuring FXO or FXS interfaces, you may skip this part and move down to section. If you are configuring T1/E1 interfaces, yo

Bitnami Coppermine for Huawei Enterprise Cloud

Installing Dialogic Diva Software Driver as an Asterisk Channel. A Technical Overview

OpenVox B200P B400P B400E User Manual

ScopTEL TM IP PBX Software. DNS Server Configuration Wizard

Installing The Asterisk PBX And The Asterisk Web-Based Provisioning GUI On Linux

NVIDIA Professional Application Center

Installing and Upgrading Cisco Network Registrar Virtual Appliance

Relay Proxy User Guide

StampA5D3x/PortuxA5/PanelA5. Quickstart Guide

Application Note 3Com VCX Connect with SIP Trunking - Configuration Guide

OCTVQE Zaptel Echo Canceller (PRELIMINARY)

Bitnami Apache Solr for Huawei Enterprise Cloud

Cisco UBE Out-of-dialog OPTIONS Ping

INUVIKA TECHNICAL GUIDE

Lab 1: Introduction to Linux Networking

ITEC451 Network Design & Analysis Laboratory Guide: Appendix

SynAST Application Platform-Trixbox Installation Manual

AimSniff. Jason Healy, Director of Networks and Systems

Quick guide for configuring a system with multiple IP-LINKs

Silexica Software Licensing Introduction & Installation Version 1.0 English

GM8126 MAC DRIVER. User Guide Rev.: 1.0 Issue Date: December 2010

GSS Administration and Troubleshooting

Configuring the SMA 500v Virtual Appliance

Using Shell Commands

Adafruit's Raspberry Pi Lesson 6. Using SSH

Table of Contents 1 V3 & V4 Appliance Quick Start V4 Appliance Reference...3

Step by Step Guide. BRI Card Installation. (with Trixbox ) Version 1.0

Dell Storage Integration Tools for VMware

Integrating VoIP Phones and IP PBX s with VidyoGateway

Step by Step Guide. BRI Card Installation. (with Asterisk) Version 1.0

Cisco UCS Director Baremetal Agent Installation and Configuration Guide, Release 5.2

The TRELLIS Real-Time Infrastructure Optimization Platform

Cisco TelePresence Conductor with Cisco Unified Communications Manager

(Refer Slide Time: 00:30)

Deploying Rubrik Datos IO to Protect MongoDB Database on GCP

Symbols. Numerics I N D E X

Product Guide Version: 1.0

Troubleshooting. Backing up the Monitoring Database in a Multi-Node Setup. This chapter contains the following sections:

Getting Started with PetaLinux SDK

Product Guide Version: 1.0

Avaya Aura Session Border Controller High Availability Configuration. Abstract

Load Balancing Bloxx Web Filter. Deployment Guide v Copyright Loadbalancer.org

Nortel Secure Router 4134 Server Module with SCS. User Guide. Release: Document Revision: NN

Deployment Guide: Routing Mode with No DMZ

How to Deploy Axon on VMware vcenter

How to Connect Trixbox to NeoGate TA FXS Gateway

snom Dect Provisioning Brief

Bitnami Re:dash for Huawei Enterprise Cloud

Connect the serial cable from the Adit to the serial port on your laptop (Or desktop for that matter)

Bitnami ez Publish for Huawei Enterprise Cloud

Deploy the ExtraHop Discover Appliance with VMware

Cisco TelePresence Conductor with Unified CM

Deploy Webex Video Mesh

Twilio Elastic SIP Trunk Provisioning

Migrating vrealize Automation 6.2 to 7.2

Lenovo ThinkAgile XClarity Integrator for Nutanix Installation and User's Guide

Bitnami HHVM for Huawei Enterprise Cloud

Configure Digium G100 Gateway to operate with UCx Servers in Failover mode

Load Balancing Censornet USS Gateway. Deployment Guide v Copyright Loadbalancer.org

CHAPTER 7 ADVANCED ADMINISTRATION PC

6.1. Getting Started Guide

Bitnami Dolibarr for Huawei Enterprise Cloud

SETTING UP SSH FOR YOUR PARALLELLA: A TUTORIAL FOR STUDENTS

Load Balancing Web Proxies / Filters / Gateways. Deployment Guide v Copyright Loadbalancer.org

STRM Log Manager Administration Guide

Bitnami Pimcore for Huawei Enterprise Cloud

Unix Tools / Command Line

VMware AirWatch Content Gateway for Linux. VMware Workspace ONE UEM 1811 Unified Access Gateway

Test Lab Introduction to the Test Lab Linux Cluster Environment

Cisco Prime Service Catalog Virtual Appliance Quick Start Guide 2

Application Notes for Infoblox DNSone in an Avaya IP Office IP Telephony Infrastructure Issue 1.0

PRACTICAL EXPERIENCE WITH TRIXBOX

Patton Trinity esbc SmartNode with BroadCloud UC & SIP Trunking. May 2018 Document Version 1.0

VIRTUAL GPU LICENSE SERVER VERSION , , AND 5.1.0

Bitnami MEAN for Huawei Enterprise Cloud

Troubleshooting Cisco APIC-EM Single and Multi-Host

Create Test Environment

Oracle Communications WebRTC Session Controller. Preparation Guide

Transcription:

Trixbox High-Availability with fonebridge Tutorial REDFONE Communications Table of Contents i

Table of Contents 1 Introduction 1.1 Overview... 1 1.1.1 Core components & requirements... 1 1.1.2 Operational Overview... 3 2 High Availability Install 2.1 Heartbeat Install & Configuration... 4 2.1.1 IP and Hostname Resolution... 5 2.1.2 Start-Up Scripts Installation... 5 3 FoneBRIDGE2 Install 3.1 Zaptel Install... 6 3.1.1 Configure Zaptel... 7 3.1.2 Configure redfone.conf... 8 4 Appendices 4.1 Testing & Troubleshooting... 9 February 8, 2007

Introduction 1 1.1 O v e r v i e w This tutorial aims to cover all the important elements for deploying a dual Trixbox server cluster with the goal of achieving fault tolerance and high availability. This guide will not cover the intricacies and nuances of setting up dial plans or SIP stations. The same tools and concepts could very easily be employed on any standard Asterisk install. In our Tutorial we will cover a medium to large sized Trixbox deployment (25-100 users) that consists of one channel bank for analog extensions and SIP phones for the remaining telephone stations. A T1 PRI provides our primary incoming and outbound path. 1.1.1 Core components & requirements *2 server grade platforms with dual Ethernet capability. *Standard Trixbox 2.0 install (may work on earlier releases) *Managed Layer 2 Switch with separate VLANs for fonebridge2 and IP traffic *fonebridge2 for T1/E1 connectivity and built-in failover capability *Heartbeat software package from Linux-HA *Supported zaptel source code for the fonebridge2 REDFONE Communications Introduction 1

See diagram below for detailed illustration;

1.1.2 Operational Overview In our scenario both Trixbox servers will be installed and configured to be a mirror image of one another. They will be deployed in an active/passive mode where by the primary server (trixbox1) is responsible for handling all TDM, SIP and Analog communication until it experiences a hardware fault. In the event of a fault on the primary server, the secondary (trixbox2) will take over control of our PBX deployment until the primary can be serviced and returned to operation. This functionality is handled by the heartbeat application running on both Trixbox servers. Heartbeat sends heartbeat packets across the network and/or serial ports to the other instances of Heartbeat as a sort of keep-alive message. When heartbeat packets are no longer received, the node is assumed to be dead, and any services (resources) it was providing are failed over to the other node. On the SIP side of our implementation we will leverage the floating IP (192.168.0.82) controlled by heartbeat to registrar our SIP clients against. If our primary server experiences a fault, our floating IP address will be quickly re-assigned to the secondary server. This allows our SIP clients to maintain registration without the need to reconfigure the clients to register to a new server. On the TDM side (T1, Channel Bank) our connectivity is controlled by the fonebridge T1/E1 to TDM over Ethernet (TDMoE) appliance. The fonebridge is configured and controlled by a small executable script (fonulator) installed on both Trixbox servers. Again, in the event of a fault on trixbox1, heartbeat will notify trixbox2 to take over communication. At this point through the heartbeat resources, the fonulator utility on the trixbox2 server will be executed sending a small update packet to the fonebridge, quickly reconfiguring the device to communicate with our back-up server. Along with the execution of fonulator, heartbeat will also execute the start-up script for Asterisk fully bringing trixbox2 on-line. To ensure quick fail-over both trixbox servers will have zaptel loaded. During failover only the fonulator and asterisk will be started. REDFONE Communications Introduction 3

High Availability Install 2 2.1 Heartbeat Install & Configuration All following configs are to be completed on both Trixbox servers and should be identical unless otherwise noted. After a normal Trixbox 2.0 install; 1. Login to your root account with the password that you entered in the setup. 2. Type 'yum install update' and press enter. Enter 'y' when it asks you if this is ok. 3. Once that is completed type 'yum install heartbeat and press enter. Do the same as above in the prompt (enter y) 4. Only three files need to be configured for heartbeat; ha.cf, haresources and authkeys 5. Edit '/etc/ha.d/ha.cf' with your favorite editor (vi,nano, WinSCP, etc.) 6. The following is the only information required for a basic setup and is the configuration based on the diagram: debugfile /var/log/ha-debug logfile /var/log/ha-log keepalive 2 deadtime 10 bcast eth1 node trixbox1 trixbox2 auto_failback off 7. Save changes and exit 8. Edit /etc/ha.d/haresources and add; trixbox1 192.168.0.82 fonulator asterisk haresources defined: hostname of primary server floating IP Address names of services/scripts to be executed during failover. 9. Edit '/etc/ha.d/authkeys' and add; auth1 1 sha1 SuPerS&cretP@$$werd (change password to your own) 10. Change permissions on authkeys to 600 #chmod 600 authkeys REDFONE Communications February 8, 2007

11. Ensure heartbeat starts up properly #service heartbeat start If you encounter any issues or error messages during startup, check your logs while starting up the service with; # tail -f /var/log/ha-debug 2.1.1 IP and Hostname Resolution Since heartbeat depends heavily on reliable IP communication it is important to ensure that IP address to hostname resolution works. Add the following to your /etc/hosts; # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost 127.0.0.1 asterisk1.local 192.168.0.81 trixbox2 192.168.0.80 trixbox1 Validate hostname-to-ip Address resolution with the ping command; #ping trixbox1 #ping trixbox2 2.1.2 Start-Up Scripts Installation 1. Change to your /etc/init.d/ directory #cd /etc/init.d/ 2. Download the fonulator startup script template; #wget http://support.red-fone.com/downloads/fonulator/fonulator_initd_script 3. Change name of startup script to fonulator #mv fonulator_init_script fonulator 4. Ensure script has execution properties #chmod a+x fonulator 5. Backup existing zaptel start-up script #mv zaptel zaptel.bak 6. Download Redfone zaptel startup script #wget http://support.red-fone.com/downloads/zaptel/start_script 7. Change name of start up script #mv start_script zaptel 8. Ensure script has execution properties and is enabled for start-up during boot. #chmod a+x zaptel #chkconfig --level 3 zaptel on REDFONE Communications High Availability Install 5

FoneBRIDGE2 Install 3 3.1 Zaptel Install Before installation, you need to download the patched verison of zaptel which is located at http://support.red-fone.com/downloads/zaptel/ 1. Move to the /usr/src directory and download the pre-patched version of zaptel. #cd /usr/src #wget http://support.red-fone.com/downloads/zaptel/zaptel-1.2.11.tar.gz 2. Untar zaptel source code #tar xvzf zaptel-1.2.11.tar.gz 3. Move to zaptel directory #cd zaptel-1.2.11 4. Install the correct kernel source for your kernel version #yum install kernel-devel 5. To correct a known zaptel build issue in CentOS/Trixbox enter the following; 6. Build zaptel #sed -i s/rw_lock/rwlock/ /usr/src/kernels/`uname -r`-`uname -m`/include/linux/spinlock.h #make clean; make; make install 7. Download and install fonulator, the fonebridge configuration utility. #cd /usr/local/sbin #wget http://support.red-fone.com/downloads/fonulator/fonulator32-2.6 #mv fonulator32-2.6 fonulator #chmod a+x fonulator REDFONE Communications February 8, 2007

3.1.1 Configure Zaptel Open /etc/zaptel.conf with your favorite editor and add the following lines. Please note that these configs apply only to this documented scenario and are by no means applicable to all fonebridge install scenarios. No other parameters are necessary for this particular install. # zaptel.conf config file # dynamic=eth,eth1/00:50:c2:65:d0:7e/0,24,2 dynamic=eth,eth1/00:50:c2:65:d0:7e/1,24,1 # # PRI Channels bchan=1-23 dchan=24 # # Channel Bank Lines fxoks=25-48 # loadzone=us defaultzone=us 3.1.2 Configure Zapata.conf As a simple illustration and for reference our zapata.conf configuration would be as follows for this scenario. Your configuration may be different. [channels] immediate=no callgroup=1 switchtype=national signalling=pri_cpe context=default resetinterval=never group=1 ; T1 PRI channel => 1-23 ; Channel Bank group=2 signalling=fxo_ks channel => 25-48 REDFONE Communications FoneBRIDGE2 Install 7

3.1.3 Configure redfone.conf The /etc/redfone.conf file is called by the fonulator utility and sends all config information to the fonebridge over Ethernet, communicating on a MAC Address-to-MAC Address basis. [globals] fb1=00:50:c2:65:d0:2c fb2=00:50:c2:65:d0:2d server1=00:16:36:76:09:91 card=eth1,fb1 [span1] span=1,0,0,esf,b8zs server1 fb1 pri [span2] span=2,0,0,esf,b8zs server1 fb1 In the globals field we establish our basic information pertaining to the MAC addresses in our implementation. fb1 and fb2 are the unique MAC addresses assigned to our fonebridge. The server1= address is the MAC address of our Trixbox server. NOTE: The only difference in the configurations of the redfone.conf file on both Trixbox servers is the servern=macaddress since each server should have a unique MAC address assigned to its Ethernet interface. The card= parameter specifies that we will be sending the update/configure packet out eth1 on our Trixbox server, destined to fb1 on the fonebridge. Under the spanx parameters we specify port number, line encoding and framing. The server1 specifies that the fonebridge will be communicating with the MAC address of server1, defined above under the Globals, and all traffic from the fonebridge side will be transmitted via fb1. Finally the pri parameter indicates that this span or port is connected to a T1 PRI with 23 B + 1 D channels. The absence of the pri parameter places this span or port in CAS/RBS mode which is used by Channel Banks and other telco equipment that requires CAS/RBS signaling. REDFONE Communications February 8, 2007

Appendices 4 4.1 Testing & Troubleshooting Heartbeat The simplest method for verifying heartbeat is established and communicating between your two Trixbox nodes is to start the service on each server. #/etc/init.d/heartbeat start or #service heartbeat start If for some reason you receive an error message when starting heartbeat on a certain node it s always helpful to check your logs as they will usually give you a good indication as to what is wrong. Try opening up another shell session and actively monitoring (tail f) the logs while starting heartbeat. # tail -f /var/log/ha-debug and/or #tail f /var/log/ha-log To verify the failover process is occurring properly, try stopping heartbeat on your primary server (trixbox1) and monitoring the ha-debug and ha-log on your secondary (trixbox2) to see if take over is successful. The floating IP address is normally installed as an alias or pseudo IP (eth0:0) attached to your primary IP address. Ex.; # ifconfig eth0:0 eth0 Link encap:ethernet HWaddr 00:0D:61:7E:2E:2D inet addr:192.168.0.82 Bcast:192.168.0.255 Mask:255.255.255.0 4.1.1 References REDFONE Communications Appendices 9

REDFONE Communications February 8, 2007