mod_xml_curl configuration
Configuration of mod_xml_curl is where all modules' configurations are, in /usr/local/freeswitch/conf/autoload_configs/xml_curl.conf.xml
.
Its XML tree in its simplest form is like this:
<configuration name="xml_curl.conf" description="cURL XML Gateway"> <bindings> <binding name="localhostweb"> <param name="gateway-url" value="http://127.0.0.1/xml_handler.php" bindings="directory"/> </binding> </bindings> </configuration>
Let's see its most important tags:
- configuration is the document container, and it specifies that this particular XML configuration snippet is "xml_curl.conf" (mod_xml_curl will look for it when loaded).
- bindings contains all the "binding" tags.
- binding each binding tag contains specifications about where and how mod_xml_curl will look for to retrieve a class of XML settings.
- gateway-url this is the only mandatory tag inside a binding tag. Its value is the complete URL (protocol, server, port, resource...
- binding each binding tag contains specifications about where and how mod_xml_curl will look for to retrieve a class of XML settings.
- bindings contains all the "binding" tags.