The mod_xml_curl basics
The mod_xml_curl
module is a module that uses the well-known cURL library (curl.haxx.se) to pull XML configuration files from a web server. FreeSWITCH can parse these files on-the-fly and use them as it would use the static XML configuration files. Since you control the web server, you get the benefit of being able to change the XML that is delivered from one request to the next. This can be useful when configuring more than one FreeSWITCH server from the same web server. One big benefit of a setup like this is the ability to make configuration changes in a single place and have them affect an entire cluster of servers.
All of the mod_xml_curl
examples in this chapter require a web server configured to run PHP scripts. The examples have been tested on Apache2 with mod_php
since it can run under Linux/UNIX and Windows.
To make mod_xml_curl
load on FreeSWITCH startup, follow these steps:
Open
conf/autoload_configs/modules.conf.xml
in your favorite text editor and add the...