Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
FreeSWITCH 1.0.6
FreeSWITCH 1.0.6

FreeSWITCH 1.0.6: Follow this course and you’ll be amazed at how feasible it is to get a sophisticated telephony system up and running by yourself. From basics to advanced features, it takes you step-by-step through the powerful capabilities of FreeSWITCH. CH

eBook
$22.99 $25.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

FreeSWITCH 1.0.6

Chapter 2. Building and Installation

FreeSWITCH is open source software. Basically this means that anyone can obtain, read, compile, mangle, fix, or anything that comes to mind, the raw source code of the application. Many users, especially beginners, will find that dealing with source code is somewhat a daunting task, but rest assured, we are doing our best to make this experience as painless as possible. In the future, we will be adding binary packages into various popular Linux distributions, but for the time being, we will explain how to manually obtain and install FreeSWITCH for Unix and Windows. (For the purpose of this chapter, the terms "Unix-like" and "Linux/Unix" refer not only to Unix and Linux but also to FreeBSD and Max OSX.) Try not to fret if it seems overwhelming. With a little patience and luck, the whole process will go smoothly. It's not entirely unlike a root canal. It's been said that many root canals are pulled off without a hitch and when they go wrong, they go horribly...

Setting up the FreeSWITCH environment


FreeSWITCH, like many other software applications, requires a suitable environment. Primarily that means choosing appropriate operating system for your hardware and having the proper LAN/WAN connectivity and physical environment.

Operating system

The first question to consider here is: which operating system should be used? Generally speaking, it is good to use an operating system with which you are comfortable and familiar. One caveat to consider is 32-bit versus 64-bit. Some users have reported problems when running a 32-bit OS on a 64-bit hardware platform. We strongly recommend that you use a 64-bit OS if you have 64-bit hardware.

For those who prefer a Windows environment you can use XP, Vista, Windows 7, Server 2003, or Server 2008. Several users have reported good success with production systems running on modern hardware, and using Windows Server 2008.

On the other hand, there is a wide variety of Unix-like operating systems available, many of which...

Downloading the source


Most open source projects have their source code divided into two general categories: stable and latest. While the latest FreeSWITCH code is usually quite stable, we recommend that you begin with the latest stable release. You can update to the latest trunk at a later point. (See the Building From the latest Code section in this chapter.) One other point to keep in mind: binary distributions of FreeSWITCH might be available for your platform. While they are certainly convenient, in our experience it is easier to troubleshoot, update, and customize your FreeSWITCH installation when compiling from the source.

Be sure that your system has Internet access because the build process will occasionally need to download additional files.

The source code can be obtained from the following FreeSWITCH download site: http://files.freeswitch.org. Locate a file named freeswitch-1.0.6.tar.gz, and download it into a local directory on your computer, then decompress it. A typical session...

Compiling FreeSWITCH for Linux/Unix/Mac OS X


The install procedure is essentially the same for Linux, Unix, or Mac OS X. However, make sure that your system has met the prerequisites listed in the previous section.

Compiling FreeSWITCH

Compiling FreeSWITCH requires just a few steps, although it will take some time depending upon the speed of your system. The basic procedure for compiling FreeSWITCH is as follows:

  • Edit modules.conf file to customize which modules are compiled by default

  • Run configure script

  • Run make and make install to compile and install

  • Edit modules.conf.xml to customize which modules are loaded by default

  • Install the sound and music files

Following are detailed step-by-step instructions for compiling FreeSWITCH.

Step 1: Edit modules.conf

The modules.conf file contains a list of the various FreeSWITCH modules that will be configured and compiled. The default modules.conf file has a sensible set of modules, pre-selected to be compiled. However, there is one optional module that we...

Compiling FreeSWITCH for Windows


As mentioned in the Operating system prerequisites section, FreeSWITCH is built with MSVC or MSVCEE. The steps presented here are specifically for the Express Edition; however, the steps for using the standard edition are essentially the same.

Building the solution with MSVC/MSVCEE

There are several small steps to take prior to building with MSVC. They are as follows:

  1. Create a new folder and copy the tar.gz file into it. In our example, we'll use C:\FreeSWITCH\freeswitch-1.0.6.tar.gz.

  2. Right-click freeswitch-1.0.6.tar.gz and extract the files with your decompression utility. You will now have a new file named, freeswitch-1.0.6.tar.

  3. Right-click freeswitch-1.0.6.tar and extract files. This process will take a few moments. You will then see a window similar to the following screenshot:

    Note: WinRAR decompresses both the .gz and .tar files in a single step.

  4. After extraction you will have a new sub-folder named after the latest version of FreeSWITCH. In our example, we...

Starting FreeSWITCH


Once you have compiled FreeSWITCH, it is time to launch the application.

Linux/Unix/OS X: run /usr/local/freeswitch/bin/freeswitch.

Windows: run freeswitch.exe from the Debug directory.

The system will start loading, and numerous messages will display on the screen. Console messages are color-coded for readability. Do not worry about all of the messages right now, just make sure that your system starts up and you get to the FreeSWITCH console, which we call the command-line interface (CLI). The CLI prompt looks like the following:

freeswitch@localhost>

Let's issue a few commands to verify that the system is operational. First, issue the version command to verify the version of FreeSWITCH that we have installed,as follows:

freeswitch@localhost>version
FreeSWITCH Version 1.0.6 (exported)

Next, issue the status command which displays a few statistics about your system, as follows:

freeswitch@localhost>status
UP 0 years, 0 days, 0 hours, 0 minutes, 36 seconds, 839 milliseconds...

Summary


In this chapter, we accomplished a number of objectives. They are as follows:

  • Downloaded and installed FreeSWITCH

  • Customized the installation by modifying the modules.conf to compile the mod_flite TTS module (Linux/Unix/Mac OS X only)

  • Customized the FreeSWITCH configuration by modifying modules.conf.xml to automatically load mod_flite, when FreeSWITCH is launched

  • Launched FreeSWITCH and issued several commands to confirm its operational status

  • Launched FreeSWITCH as a daemon (Linux/Unix) or as a service (Windows)

In the following chapter, we will put our new installation into action as we explore the default configuration of FreeSWITCH.

Left arrow icon Right arrow icon

Key benefits

  • Install and configure a complete telephony system of your own even if you are using FreeSWITCH for the first time
  • In-depth discussions of important concepts like the dialplan, user directory, and the powerful FreeSWITCH Event Socket
  • The first ever book on FreeSWITCH, packed with real-world examples for Linux/Unix systems, Mac OSX, and Windows, along with useful screenshots and diagrams
  • Best practices and expert tips from the FreeSWITCH experts, including the creator of FreeSWITCH, Anthony Minessale

Description

FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice and chat-driven products scaling from a soft-phone to a PBX and even up to an enterprise-class soft-switch. It is always exciting to design and build your own telephony system to suit your needs, but the task is time consuming and involves a lot of technical skills.This book comes to your rescue, helping you to set up a telephony system fast and easily using FreeSWITCH. It will take you from being a novice to creating a fully-functional telephony system of your own. It is rich with practical examples and will give you all of the information and skills needed to implement your own PBX system.The book begins by introducing the architecture and working of FreeSWITCH before detailing how to plan a telephone system and moving on to the installation, configuration, and management of a feature-packed PBX. You will learn about maintaining a user directory, XML dial plan and advanced dial plan concepts, call routing, and the extremely powerful Event Socket. You will finally learn about the online community and history of FreeSWITCH.

Who is this book for?

If you are an IT professional or enthusiast who is interested in quickly getting a powerful telephony system up and running using the free and open source application FreeSWITCH, this book is for you. Telephony experience will be helpful, but is not required.

What you will learn

  • Set up a basic system to make and receive phone calls, make calls between extensions, and utilize basic PBX functionality
  • Avoid common implementation mistakes and deploy various features of this telephony system with best practices and expert tips
  • Perform routine maintenance for smooth running and troubleshoot the system when things are not going right
  • Apply regular expressions to unlock unique and powerful call routing scenarios
  • Call your own application(s) when particular events occur and control FreeSWITCH using the powerful Event Socket
  • Set up multi-party conferencing facilities for your system
  • Interact with callers, gather information, and route calls to the appropriate recipient using the automated, built-in XML IVR (Interactive Voice Response) engine
  • Create a flexible dialplan, and allow third-party tools to be quickly and easily created using dialplan parsers other than the default XML Dialplan
  • Park multiple calls in a FIFO queue and unpark them in the order in which they were received, using the mod_fifo module
  • Record an entire phone call or session using the call recording feature
  • Create advanced call control applications with the Lua scripting language
  • Take a peek into the vibrant online community and history of FreeSWITCH

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 26, 2010
Length: 320 pages
Edition : 1st
Language : English
ISBN-13 : 9781847199973
Vendor :
FreeSWITCH
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 26, 2010
Length: 320 pages
Edition : 1st
Language : English
ISBN-13 : 9781847199973
Vendor :
FreeSWITCH
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 125.97
FreeSWITCH 1.0.6
$43.99
FreeSWITCH Cookbook
$32.99
FreeSWITCH 1.2
$48.99
Total $ 125.97 Stars icon

Table of Contents

10 Chapters
Architecture of FreeSWITCH Chevron down icon Chevron up icon
Building and Installation Chevron down icon Chevron up icon
Test Driving the Default Configuration Chevron down icon Chevron up icon
SIP and the User Directory Chevron down icon Chevron up icon
Understanding the XML Dialplan Chevron down icon Chevron up icon
Using the Built-in XML IVR Engine Chevron down icon Chevron up icon
Building IVR Applications with Lua Chevron down icon Chevron up icon
Advanced Dialplan Concepts Chevron down icon Chevron up icon
Controlling FreeSWITCH Externally Chevron down icon Chevron up icon
Advanced Features and Further Reading Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(5 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Ali R. Aug 12, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book provides the detailed information you need to start using this powerful open source platform. It is written in an enjoyable style, read it and you will be armed with relevant information on how to deploy rich and SMART VoIP applications.
Amazon Verified review Amazon
Michael F. Gende Aug 31, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Chapter one starts out boldly stating, "A revolution has begun and secrets have been revealed." Indeed. As someone that came upon FreeSWITCH after some discouraging issues with another well known VoIP engine, I found this project to be well engineered, useful, and getting more so all the time. And while there is a great deal of detailed information on FS available via the Internet, one longed for a more "start to finish" treatment, details in that context, a good reference, and perhaps even some historical perspective that one could carry around. I have found this book to be all of those things and then some. I personally like the conversational writing style despite the technical information contained herein. So, if you are seeking information on FreeSWITCH, how to get it up and running, and things one can do with it, well, there is a lot to like about this book. For the FS administrator, this comes highly recommended, as it should be to anyone with some computer science background interested in the subject. And, don't overlook Appendix B for some enjoyable information on how the whole project came to exist. Well done, gentlemen.
Amazon Verified review Amazon
FPYM Mar 30, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I've been working with FreeSWITCH for a while now-- on both small and (very) large scale deployments. Even with my experience, I made the decision to purchase the book (of many reasons supporting the authors of open source software you use seems like the right thing to do). The bottom line? I don't care how experienced you are-- this book will provide you at least one AWESOME tip. It's something I would consider an essential purchase.
Amazon Verified review Amazon
pjintheusa Jul 28, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I have been using FreeSWITCH for little under a year and enjoy it greatly. If there is one weak spot then it is with the documentation - especially for the beginner. This book plugs this gap very nicely by giving a gentle but thorough introduction, followed by advanced topics including IVR, Lua scripting and even the event socket layer (ESL). There is a good emphasis on explaining architecture - is teaches the why as well as how. Although I am familiar (but by no means an expert) with FreeSWITCH, I still found myself learning a great deal in the very early pages. If you have an interest in VoIP and open source telephony - this is a must have.
Amazon Verified review Amazon
lfean32 Sep 08, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
You can count on this book being different from any other technical voip book available today. It is a must have publication for the voip novice or an advanced engineer wishing to use Freeswitch. After reading the first chapter it is easy to see there is a large amount of information in the book and reading it more than once is recommended to help with absorbing the material.Upon completing the first half of the book readers will find their understanding of not only Freeswitch but of the voice over internet protocol will be greatly enhanced. The book tells readers the beginnings of phone systems and the future of them with the use of Freeswitch. The authors suggest reading the first chapter multiple times at different intervals within the book, I would also endorse this as it helps the reader gain some extra insight into the Freeswitch architecture.Novice users will find chapter 2 very useful as it goes though the installation process step by step for Linux, Windows and Mac OS X. It also discusses the different prerequisites for compiling and installing on these different operating systems. I was impressed with the instructions to compile and install on Windows operating systems as they are very in depth making it easy to follow. Not that I would recommend using Freeswitch on top of Windows but if you needed to do so I wouldn't try it without this book.More advanced topics are introduced in chapter 7 by programing IVR menu's with the built-in Lua language. The subjects and examples covered here are extremely useful to any Freeswitch programer showing basic and advanced menus with database integration. The examples used in the chapter will help readers develop their own sophisticated IVR menus for use within phone systems or enterprise level switches. Whichever way you are headed there is an example to help you design the perfect IVR.Engineers looking for enterprise level systems would find chapter 9 of interest since it covers the ability of external control for Freeswitch. This gives designers different methods to interact and work with the Freeswitch application using an api. This is especially helpful in enterprise systems to provide monitoring and administration to basic users using a webpage or other form of simple navigation. Through the api a webpage can give a user the ability to complete most tasks within Freeswitch easily using a GUI.After reading the whole book, and maybe reading a couple of chapters over a few times, readers will have a complete knowledge of what Freeswitch is and how it can improve their voip implementation. Whether using it on Windows or Linux, for a small office or a internet telephone service provider this book will have something useful for all readers. It is not overly basic for advanced users or too technical for beginners, the context is introduced in a format not to overwhelm first time users. I found all the information very helpful and useful to expand my Freeswitch knowledge allowing me to add new features to phone systems and enterprise systems. FreeSWITCH 1.0.6
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.