Search icon CANCEL
Subscription
0
Cart icon
Cart
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
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
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
Languages
Concepts
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
Toc

Table of Contents (21) Chapters close

Mastering FreeSWITCH
Credits
About the Authors
About the Reviewers
Contributors
www.PacktPub.com
Preface
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

Structure of welcome.lua


The welcome.lua nucleus was originally written as a TTS menu demo by Meftah Tayeb, a blind Algerian tech enthusiast, who by sheer willpower and strength became a very active FreeSWITCH community member, and then a respected engineer for Algeria Telecom, and now is continuing his career in a private business.

We'll read it in detail in next section, but let's start with an outline of how its different sections fit together:

  • line 1: Use include, and all its functions and variables

  • line 3 to 21: A function that will be called later

  • line 23: Here we check if we are answering the call or we are after hangup

  • line 25 to 51: This block will be executed as api_hangup_hook, after call hangup

  • line 53 to 268: This block is executed when the call comes in

  • line 54 to 78: Set and get some session (for example, channel) variables

  • line 80: Incoming call is answered

  • line 83: First voice menu

    • line 87 to 166: Processing DTMFs pressed in the first voice menu

  • line 170: Second voice menu

    • line 174...

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