XML Dialplan module review
As we discussed in Chapter 5, Understanding the XML Dialplan, the XML Dialplan module is the most popular way to configure FreeSWITCH. At the time of writing this book it is also the most robust. It supports contexts, which contain lists of extensions, with each extension containing one or more conditions, and each condition containing a list of actions to be executed.
Let's review a few concepts to make sure that you are fully comfortable with them. The searching and processing of Dialplan entries is based on an expected layout that looks something like a multi-dimensional tree.
After a quick glance at the expected structure of your Dialplan and how it is used, it should be somewhat obvious why XML lends itself as a good choice for the creation of a Dialplan. The nesting attributes of XML are a perfect fit for the scenario shown. FreeSWITCH relies on a tree of configuration options in a Dialplan, and XML is naturally a limitless tree-like structure that allows for...