- •Table of Contents
- •Introduction
- •What This Book Covers
- •Conventions
- •Reader Feedback
- •Customer Support
- •Errata
- •Questions
- •What is Asterisk?
- •Asterisk is a PBX
- •Station-To-Station Calls
- •Line Trunking
- •Telco Features
- •Advanced Call Distribution
- •Call Detail Records
- •Call Recording
- •Asterisk is an IVR System
- •Asterisk is a Voicemail System
- •Asterisk is a Voice over IP (VoIP) System
- •What Asterisk Isn't
- •Asterisk is Not an Off-the-Shelf Phone System
- •Asterisk is Not a SIP Proxy
- •Asterisk Does Not Run on Windows
- •Is Asterisk a Good Fit for Me?
- •Trade-Offs
- •Flexibility versus Ease of Use
- •Graphical versus Configuration File Management
- •Calculating Total Cost of Ownership
- •Return on Investment
- •Summary
- •The Public Switched Telephony Network (PSTN)
- •Connection Methods
- •Plain Old Telephone Service (POTS) Line
- •Integrated Services Digital Network (ISDN)
- •Voice over IP Connections
- •Determining Our Needs
- •Terminal Equipment
- •Types of Terminal Devices
- •Hard Phones
- •Soft Phones
- •Communications Devices
- •Another PBX
- •Choosing a Device
- •Features, Features, and More Features…
- •Determining True Cost
- •Compatibility with Asterisk
- •Sound Quality Analysis
- •Usability Issues
- •Recording Decisions
- •How Much Hardware do I Need?
- •Choosing the Extension Length
- •Summary
- •Preparing to Install Asterisk
- •Obtaining the Source Files
- •Installing Zaptel
- •Installing libpri
- •Installing Asterisk
- •Getting to Know Asterisk
- •Summary
- •Zaptel Interfaces
- •zaptel.conf
- •Lines
- •Terminals
- •zapata.conf
- •Lines
- •Terminals
- •SIP Interfaces
- •IAX Interfaces
- •Voicemail
- •Music On Hold
- •Queues
- •Conference Rooms
- •Summary
- •Creating a Context
- •Creating an Extension
- •Creating Outgoing Extensions
- •Advanced Call Distribution
- •Call Queues
- •Call Parking
- •Direct Inward Dialing (DID)
- •Automated Attendants
- •System Services
- •Summary
- •Call Detail Records
- •Flat-File CDR Logging
- •Database CDR Logging
- •Monitoring Calls
- •Recording Calls
- •Legal Concerns
- •Summary
- •CentOS
- •Preparation and Installation
- •The Asterisk Management Portal (AMP)
- •Maintenance
- •Setup
- •Flash Operator Panel (FOP)
- •Flash Operator Configuration Files
- •Web MeetMe
- •Flexibility When Needed
- •A Simple One-to-One PBX
- •Extensions
- •Trunks
- •Routes
- •Customer Relationship Management/SugarCRM
- •Adding Contacts
- •Call Scheduling
- •Administration of SugarCRM
- •Configure Settings
- •User Management
- •User Roles
- •Summary
- •Small Office/Home Office
- •The Scenario
- •The Discussion
- •The Configuration
- •zaptel.conf
- •zapata.conf
- •musiconhold.conf
- •voicemail.conf
- •modules.conf
- •extensions.conf
- •Conclusions
- •Small Business
- •The Scenario
- •The Discussion
- •The Configuration
- •zaptel.conf
- •zapata.conf
- •musiconhold.conf
- •agents.conf
- •queues.conf
- •sip.conf
- •meetme.conf
- •voicemail.conf
- •extensions.conf
- •Conclusions
- •Hosted PBX
- •The Scenario
- •The Discussion
- •The Configuration
- •zaptel.conf
- •zapata.conf
- •musiconhold.conf
- •sip.conf
- •voicemail.conf
- •extensions.conf
- •Conclusions
- •Summary
- •Backup and System Maintenance
- •Backing Up Configurations
- •Backing Up Log Files
- •Backup Scripts
- •Time Synchronization
- •Adding It All to cron
- •Rebuilding and Restoring the Asterisk Server
- •Disaster Recovery Plan (DRP)
- •Asterisk Server Security
- •Internal Access Control
- •Host Security Hardening for Asterisk
- •Integrity Checker
- •Root-Kit Detection
- •Automated Hardening
- •Role Based Access Control (RBAC)
- •Network Security for Asterisk
- •Firewalling the Asterisk Protocols
- •SIP (Session Initiation Protocol)
- •RTP—The Real-Time Transport Protocol
- •Controlling Administration of Asterisk
- •Asterisk Scalability
- •Load Balancing with DNS
- •Support Channels for Asterisk
- •Mailing Lists
- •Forums
- •IRC (Internet Relay Chat)
- •Digium
- •Summary
- •Index
Asterisk@Home
CentOS isn't the focus of this chapter and it doesn't really have too much bearing on our use of Asterisk@Home other than knowing basically how to use and update it. We will focus on the setup and maintenance of Asterisk@Home and the features it provides for us. It would be beneficial if we spent time getting to know CentOS if we decide to use Asterisk@Home.
Preparation and Installation
Asterisk@Home recommends a minimum of a 300Mhz processor and 128 MB of RAM; however, CentOS will complain at boot if there is less than 256 MB. The amount of RAM required has a direct correspondence with how heavily used the system will be. As Asterisk@Home is Asterisk with a few other services added, we can pretty much scale it similarly. We do have to consider extra resources for the additional services we have running such as the web server and the MySQL server.
Asterisk@Home comes in two flavors: a source package that we can install on a CentOS system, and an ISO image that can be burned and installed as a full OS. The ISO installs a modified CentOS system automatically and sets up the necessary Asterisk@Home services.
We can obtain the ISO from http://sourceforge.net/projects/asteriskathome/.
After downloading and burning the image to disk, reboot the target machine with the Asterisk@Home CD in the drive, and wait for the prompt, which should look like the following:
boot: _
If at this point we hit Enter, the installer will start up and begin to install CentOS with Asterisk@Home on the first primary hard disk. It's very important to ensure that this disk is the disk we want to use and that no important data is held there as all data will be lost. From this point onwards installation is entirely automatic, and we can leave it for a few minutes while it prepares the machine, installs the OS and the necessary programs for Asterisk@Home—including Asterisk, MySQL, Apache, and so on. It's a good time to gather the documents we need to configure Asterisk, such as our lists of extensions and our service provider account details. We'll need the same information as in previous chapters where we set up Asterisk manually; now, however, we don't need to worry so much about Asterisk's configuration syntax as we have a friendly GUI-based setup system that takes care of most things.
Installation of Asterisk@Home is extremely simple and as long as all of our hardware has Linux support, there should be little issue getting the system installed.
We can configure advanced options and modify the kernel boot parameters if necessary by hitting one of the keys F1-F5 at the boot prompt (this usually isn't necessary). F5 is of particular note as this runs the CD as a rescue disk, which we can use to repair a machine that refuses to boot.
100