Search icon CANCEL
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
Mastering FreeSWITCH

You're reading from  Mastering FreeSWITCH

Product type Book
Published in Jul 2016
Publisher Packt
ISBN-13 9781784398880
Pages 300 pages
Edition 1st Edition
Authors (8):
Russell Treleaven Russell Treleaven
Profile icon Russell Treleaven
Seven Du Seven Du
Profile icon Seven Du
Darren Schreiber Darren Schreiber
Profile icon Darren Schreiber
Ken Rice Ken Rice
Profile icon Ken Rice
Mike Jerris Mike Jerris
Profile icon Mike Jerris
Kalyani Kulkarni Kalyani Kulkarni
Profile icon Kalyani Kulkarni
Florent Krieg Florent Krieg
Profile icon Florent Krieg
Charles Bujold Charles Bujold
Profile icon Charles Bujold
View More author details

Table of Contents (21) Chapters close

Mastering FreeSWITCH
About the Authors
About the Reviewers
1. Typical Voice Uses for FreeSWITCH 2. Deploying FreeSWITCH 3. ITSP and Voice Codecs Optimization 4. VoIP Security 5. Audio File and Streaming Formats, Music on Hold, Recording Calls 6. PSTN and TDM 7. WebRTC and Mod_Verto 8. Audio and Video Conferencing 9. Faxing and T38 10. Advanced IVR with Lua 11. Write Your FreeSWITCH Module in C 12. Tracing and Debugging VoIP 13. Homer, Monitoring and Troubleshooting Your Communication Platform Index

Installing IVR

The complete application is made up of various files:

  • welcome.lua: This is the main script

  • utils.lua: This contains the utility functions provided to all other scripts

  • LuaRunWeb.lua: This script is spawned by a function in welcome.lua for non-blocking web access

  • LuaRunMoh.lua: This script is spawned by welcome.lua for non-blocking audio playback to the caller.

  • welcome.xml: This is the dialplan entry

Because we will often reference different parts of the scripts you really must download the code from

Then, copy all LUA files into the script directory of FreeSWITCH (default: /usr/local/freeswitch/scripts/), and put the XML file into the default subdirectory of FreeSWITCH dialplan (/usr/local/freeswitch/conf/dialplan/default/).

You will then load mod_flite into FreeSWITCH, because this script needs Text To Speech (TTS). If you have compiled from sources, go to /usr/src/freeswitch.git and type (pay attention to dash-underscore differences):



lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime