mod_xml_curl: Caveats and Pitfalls
So, you get excited by the endless possibilities offered by mod_xml_curl and you want to implement it yourself. Good!
But you want to take into account some things:
- FreeSWITCH makes a lot of XML lookups. Really: a lot! A very big fast whopping lot!
- You want your webserver to be very fast in returning the XML snippets, in failing, in timeouts, in all things: FreeSWITCH will wait for it
- You want to set the timeout in each binding. In case of webserver not responding or slow, FreeSWITCH will wait for it
- Particularly for directory, FreeSWITCH will not initiate a new phone registration until the previous has been completed or failed
- You may want to allow for FreeSWITCH caching of XML snippets. Look in mod_xml_curl confluence documentation for it
- You may want to use PHP caching, memcached or similar systems
- You want to cure all aspect of web security, both for denial of service, for hackability of server side scripts, for exposition of your database, etc
- You DO NOT want...