FreeSWITCH XML Dialplan elements
The default FreeSWITCH XML Dialplan is contained in three main files and two directories, located in conf/dialplan/
:
default.xml
—The primary FreeSWITCH Dialplan configurationpublic.xml
—Handles calls coming in to FreeSWITCH from another locationfeatures.xml
—A special context for handling specific dialing featuresdefault/
—Files in this directory get included in the default contextpublic/
—Files in this directory get included in the public context
The default XML configuration has many instructions for routing calls, all of which make use of the basic building blocks of a Dialplan: contexts, extensions, conditions, and actions. A context is a logical grouping of one or more extensions. An extension contains one or more conditions that must be met. Conditions contain actions that will be performed on the call, depending on the whether the condition is met or not. Before discussing these building blocks further, though, let's revisit some of the concepts we...