Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right 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
Languages
Concepts
Authors (8):
Russell Treleaven Russell Treleaven
Seven Du Seven Du
Darren Schreiber Darren Schreiber
Profile icon Darren Schreiber
Ken Rice Ken Rice
Mike Jerris Mike Jerris
Kalyani Kulkarni Kalyani Kulkarni
Florent Krieg Florent Krieg
Charles Bujold Charles Bujold
View More author details

Table of Contents (21) Chapters

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

Mod_Example outline


mod_example has been written to be, huh, an example, so I tried to stuff in it many useful features, in the simplest way. You can use it as a base, adding and subtracting features:

mod_example.c code layout:

  • Declarations:

    • The module's mandatory three functions (example_load, example_runtime, example_shutdown)

    • Module definition

    • A data structure (globals) we'll use to keep state and configuration

    • The function (example_on_state_change) we'll execute when channel state changes

    • The table (example_state_handler) describing which function to execute at which state change

  • Implementations:

    • The function (example_on_state_change) we'll execute when channel state changes

    • The function (do_config) we use to read values from config file and initialize the globals data structure

    • The function (example_api) we use to implement an API command

    • The function (example_event_handler) we use to implement reactions to events

    • The function (example_app) we use to implement a dialplan application

    • Modules' mandatory...

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}