Design a complete Voice over IP (VoIP) or traditional PBX system with Asterisk, even if you have only basic telecommunications knowledge. This bestselling guide makes it easy, with a detailed roadmap that shows you how to install and configure this open source software, whether you’re upgrading your existing phone system or starting from scratch.

Ideal for Linux administrators, developers, and power users, this updated edition shows you how to write a basic dialplan ...

See more details below
Asterisk: The Definitive Guide

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
BN.com price
(Save 42%)$46.99 List Price


Design a complete Voice over IP (VoIP) or traditional PBX system with Asterisk, even if you have only basic telecommunications knowledge. This bestselling guide makes it easy, with a detailed roadmap that shows you how to install and configure this open source software, whether you’re upgrading your existing phone system or starting from scratch.

Ideal for Linux administrators, developers, and power users, this updated edition shows you how to write a basic dialplan step-by-step, and brings you up to speed on the features in Asterisk 11, the latest long-term support release from Digium. You’ll quickly gain working knowledge to build a simple yet inclusive system.

  • Integrate Asterisk with analog, VoIP, and digital telephony systems
  • Build an interactive dialplan, using best practices for more advanced features
  • Delve into voicemail options, such as storing messages in a database
  • Connect to external services including Google Talk, XMPP, and calendars
  • Incorporate Asterisk features and functions into a relational database to facilitate information sharing
  • Learn how to use Asterisk’s security, call routing, and faxing features
  • Monitor and control your system with the Asterisk Manager Interface (AMI)
  • Plan for expansion by learning tools for building distributed systems
Read More Show Less

Product Details

  • ISBN-13: 9781449332457
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 5/10/2013
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 4
  • Pages: 846
  • Sales rank: 1,362,388
  • File size: 7 MB

Meet the Author

Russell Bryant is a Principal Software Engineer at Red Hat, where he works on the OpenStack project. Beginning in 2004 Russell spent seven years working for Digium on the Asterisk project. Russell's role at Digium began as a software developer and concluded as being the leader of the Asterisk Project and the Engineering Manager for the team focused on Asterisk development.

Leif Madsen first got involved with the Asterisk community when he was looking for a voice conferencing solution. Once he learned that there was no official Asterisk documentation, he co-founded the Asterisk Documentation Project. Leif is currently working at Thinking Phone Networks, leading the unified communications backend team. You can find out more about him at http://www.leifmadsen.com.

Jim Van Meggelen is President and CTO of Core Telecom Innovations, a Canadian-based provider of open-source telephony solutions. He has over fifteen years of enterprise telecom experience for such companies as Nortel, Williams and Telus, and has extensive knowledge of both legacy and VoIP equipment from manufacturers such as Nortel, Cisco, and Avaya. Jim is one of the principal contributors to the Asterisk Documentation Project, and is co-author of the bestselling O'Reilly book, Asterisk: The Future of Telephony.

Read More Show Less

Table of Contents

Matt Jordan (Engineering Manager, Digium);
Alex Balashov (Principal, Evariste Systems);
Kevin McAllister (VP of Engineering, CoreDial, LLC);
Brian Capouch (Computer Science Department, Saint Joseph’s College [Indiana]);
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Chapter 1: A Telephony Revolution;
1.1 Asterisk and VoIP: Bridging the Gap Between Traditional and Network Telephony;
1.2 Massive Change Requires Flexible Technology;
1.3 Asterisk: The Hacker’s PBX;
1.4 Asterisk: The Professional’s PBX;
1.5 The Asterisk Community;
1.6 The Business Case;
1.7 Conclusion;
Chapter 2: Asterisk Architecture;
2.1 Modules;
2.2 File Structure;
2.3 The Dialplan;
2.4 Hardware;
2.5 Asterisk Versioning;
2.6 Conclusion;
Chapter 3: Installing Asterisk;
3.1 Installation Cheat Sheet;
3.2 Distribution Installation;
3.3 Software Dependencies;
3.4 Downloading What You Need;
3.5 How to Install It;
3.6 Base Configuration;
3.7 Updating Asterisk;
3.8 Common Issues;
3.9 Upgrading Asterisk;
3.10 Conclusion;
Chapter 4: Initial Configuration Tasks;
4.1 asterisk.conf;
4.2 modules.conf;
4.3 indications.conf;
4.4 musiconhold.conf;
4.5 Additional Configuration Files;
4.6 Conclusion;
Chapter 5: User Device Configuration;
5.1 Telephone Naming Concepts;
5.2 Hardphones, Softphones, and ATAs;
5.3 Configuring Asterisk;
5.4 Digium Phones with Asterisk;
5.5 Loading Your New Channel Configurations;
5.6 Testing to Ensure Your Devices Have Registered;
5.7 Analog Phones;
5.8 A Basic Dialplan to Test Your Devices;
5.9 Under the Hood: Your First Call;
5.10 Conclusion;
Chapter 6: Dialplan Basics;
6.1 Dialplan Syntax;
6.2 A Simple Dialplan;
6.3 Building an Interactive Dialplan;
6.4 Conclusion;
Chapter 7: Outside Connectivity;
7.1 The Basics of Trunking;
7.2 Fundamental Dialplan for Outside Connectivity;
7.3 PSTN Circuits;
7.4 VoIP;
7.5 Emergency Dialing;
7.6 Conclusion;
Chapter 8: Voicemail;
8.1 Comedian Mail;
8.2 Dialplan Integration;
8.3 Storage Backends;
8.4 Using Asterisk as a Standalone Voicemail Server;
8.5 Database Integration;
8.6 Conclusion;
Chapter 9: Internationalization;
9.1 Devices External to the Asterisk Server;
9.2 PSTN Connectivity, DAHDI, Digium Cards, and Analog Phones;
9.3 Asterisk;
9.4 Conclusion—Easy Reference Cheat Sheet;
Chapter 10: Deeper into the Dialplan;
10.1 Expressions and Variable Manipulation;
10.2 Dialplan Functions;
10.3 Conditional Branching;
10.4 Macros;
10.5 GoSub;
10.6 Local Channels;
10.7 Using the Asterisk Database (AstDB);
10.8 Handy Asterisk Features;
10.9 Conclusion;
Chapter 11: Parking, Paging, and Conferencing;
11.1 features.conf;
11.2 Overhead and “Underchin” Paging (a.k.a. Public Address);
11.3 Advanced Conferencing;
11.4 Conclusion;
Chapter 12: Internet Call Routing;
12.1 DNS and SIP URIs;
12.2 ENUM and E.164;
12.3 ISN, ITAD, and freenum.org;
12.4 Security and Identity;
12.5 Conclusion;
Chapter 13: Automatic Call Distribution (ACD) Queues;
13.1 Creating a Simple ACD Queue;
13.2 Queue Members;
13.3 The queues.conf File;
13.4 The agents.conf File;
13.5 Advanced Queues;
13.6 Queue Statistics: The queue_log File;
13.7 Conclusion;
Chapter 14: Device States;
14.1 Device States;
14.2 Extension States;
14.3 SIP Presence;
14.4 Using Custom Device States;
14.5 Distributed Device States;
14.6 Shared Line Appearances;
14.7 Creating a Callback Service;
14.8 Conclusion;
Chapter 15: The Automated Attendant;
15.1 An Auto Attendant Is Not an IVR;
15.2 Designing Your Auto Attendant;
15.3 Building Your Auto Attendant;
15.4 Conclusion;
Chapter 16: Relational Database Integration;
16.1 Installing and Configuring PostgreSQL and MySQL;
16.2 Installing and Configuring ODBC;
16.3 Managing Databases;
16.4 Powering Your Dialplan with func_odbc;
16.5 A Gentle Introduction to func_odbc;
16.6 Getting Funky with func_odbc: Hot-Desking;
16.7 Using Realtime;
16.8 Storing Call Detail Records (CDR);
16.9 ODBC Voicemail Message Storage;
16.10 Database Integration of ACD Queues;
16.11 Conclusion;
Chapter 17: Interactive Voice Response;
17.1 What Is IVR?;
17.2 Components of an IVR;
17.3 IVR Design Considerations;
17.4 Asterisk Modules for Building IVRs;
17.5 A Simple IVR Using CURL;
17.6 A Prompt-Recording Application;
17.7 Speech Recognition and Text-to-Speech;
17.8 Conclusion;
Chapter 18: External Services;
18.1 Calendar Integration;
18.2 Voicemail IMAP Integration;
18.3 Using XMPP (Jabber) with Asterisk;
18.4 Out-of-Band Messaging (Messaging Infrastructure);
18.5 LDAP Integration;
18.6 Text-to-Speech Utilities;
18.7 Conclusion;
Chapter 19: Fax;
19.1 What Is a Fax?;
19.2 Ways to Handle Faxes in Asterisk;
19.3 spandsp;
19.4 Digium Fax For Asterisk;
19.5 Incoming Fax Handling;
19.6 Outgoing Fax Handling;
19.7 Fax Pass-Through;
19.8 Conclusion;
Chapter 20: Asterisk Manager Interface (AMI);
20.1 Quick Start;
20.2 Configuration;
20.3 Protocol Overview;
20.4 Call Files;
20.5 Example Usage;
20.6 Development Frameworks;
20.7 Interesting Applications;
20.8 Conclusion;
Chapter 21: Asterisk Gateway Interface (AGI);
21.1 Quick Start;
21.2 AGI Variants;
21.3 AGI Communication Overview;
21.4 Example: Account Database Access;
21.5 Development Frameworks;
21.6 Conclusion;
Chapter 22: Clustering;
22.1 Traditional PBXs;
22.2 Hybrid Systems;
22.3 Pure Asterisk, Nondistributed;
22.4 Asterisk and Database Integration;
22.5 Asterisk and Distributed Device States;
22.6 Multiple Queues, Multiple Sites;
22.7 Conclusion;
Chapter 23: Distributed Universal Number Discovery (DUNDi);
23.1 How Does DUNDi Work?;
23.2 The dundi.conf File;
23.3 Configuring Asterisk for Use with DUNDi;
23.4 Conclusion;
Chapter 24: System Monitoring and Logging;
24.1 logger.conf;
24.2 Call Detail Records;
24.3 CEL (Channel Event Logging);
24.4 SNMP;
24.5 Conclusion;
Chapter 25: Web Interfaces;
25.1 Flash Operator Panel;
25.2 Queue Status and Reporting;
25.3 Call Detail Records;
25.4 A2Billing;
25.5 Conclusion;
Chapter 26: Security;
26.1 Scanning for Valid Accounts;
26.2 Authentication Weaknesses;
26.3 Fail2ban;
26.4 Encrypted Media;
26.5 Dialplan Vulnerabilities;
26.6 Securing Asterisk Network APIs;
26.7 IAX2 Denial of Service;
26.8 Other Risk Mitigation;
26.9 CLI Permissions;
26.10 Resources;
26.11 Conclusion—A Better Idiot;
Chapter 27: Asterisk: A Future for Telephony;
27.1 The Problems with Traditional Telephony;
27.2 Paradigm Shift;
27.3 The Promise of Open Source Telephony;
27.4 The Future of Asterisk;
Understanding Telephony;
Analog Telephony;
Digital Telephony;
The Digital Circuit-Switched Telephone Network;
Packet-Switched Networks;
Protocols for VoIP;
The Need for VoIP Protocols;
VoIP Protocols;
Quality of Service;
Asterisk and VoIP;
VoIP Security;
Preparing a System for Asterisk;
Server Hardware Selection;
Telephony Hardware;
Types of Phones;
Linux Considerations;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)