Lua XML handler
Exactly in the same vein as mod_xml_curl, you can have FreeSWITCH retrieve its XML configuration snippets by executing a script in one of the supported scripting languages.
You must first configure the scripting language module, in this case mod_lua, to handle XML lookup requests for a class of XML snippets.
Then you create a script that sets a variable named XML_STRING, containing the XML snippet.
That's it. Because lua is embedded in FreeSWITCH (as python and perl) there is no need for anything else.
You would connect to databases, webservers, do your data massaging, and so on from the script itself. The script is just supposed to return a string containing the XML snippet. With any means necessary.
This example Lua script ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access