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
All 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
Arrow up icon
GO TO TOP
FreeSWITCH 1.8

You're reading from   FreeSWITCH 1.8 Get to grips with VoIP and WebRTC communication and quickly build robust telephony systems with FreeSWITCH

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781785889134
Length 434 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Giovanni Maruzzelli Giovanni Maruzzelli
Author Profile Icon Giovanni Maruzzelli
Giovanni Maruzzelli
Anthony Minessale II Anthony Minessale II
Author Profile Icon Anthony Minessale II
Anthony Minessale II
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Architecture of FreeSWITCH FREE CHAPTER 2. Building and Installation 3. Test Driving the Example Configuration 4. User Directory, SIP, and Verto 5. WebRTC, SIP, and Verto 6. XML Dialplan 7. Phrase Macros and XML IVRs 8. Lua FreeSWITCH Scripting 9. Dialplan in Deep 10. Dialplan, Directory, and ALL via XML_CURL and Scripts 11. ESL - FreeSWITCH Controlled by Events 12. HTTAPI - FreeSWITCH Asks Webserver Next Action 13. Conferencing and WebRTC Video-Conferencing 14. Handling NAT 15. VoIP Security 16. Troubleshooting, Asking for Help, and Reporting Bugs

Chapter 10. Dialplan, Directory, and ALL via XML_CURL and Scripts

The same XML Dialplan and User Directory (and actually all of the FreeSWITCH configuration) we saw in previous chapters can be served dynamically to FreeSWITCH, changing in real time, instead of being read from the filesystem.

Also, this is not an all or nothing choice: you can serve dynamically just the User Directory, or the dialplan, or the module configurations. And you can have fall-backs on filesystem that are read when the dynamic configuration is not covering that specific looked for item (as in "404 File not found").

You can serve that XML information via a web server to mod_xml_curl, or you can use scripts in supported languages (Lua, Perl, and so on). Scripts can do whatever to build the XML snippet to be returned to FreeSWITCH (query a database, use a template, and so on).

Each time FreeSWITCH needs to know something (a user configuration, or a dialplan extension) it will use the script (or mod_xml_curl) to retrieve...

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 £13.99/month. Cancel anytime
Visually different images