HTTAPI syntax
HTTAPI markup is really nothing more than specifically crafted XML. In its most basic form an HTTAPI document looks like this:
<document type="text/freeswitch-httapi"> <variables/> <params/> <work/> </document>
This document is returned from the web server in response to the HTTP POST operation that requested it.
An HTTAPI response must have a content type of text/xml. All HTTAPI responses must include the document tag with the type attribute of text/freeswitch-httapi. Aside from that, you may use any one, or all, of the child tags in a given response. The child tags available are:
params: These are the POSTparams(that is, "parameters") that FreeSWITCH passes to the web server on each request. You can use the<params>tag to tell FreeSWITCH to pass custom POSTparams.variables: These are channel variables from the channel that is calling thehttapiDialplan application. The<variables>tag allows you to set channel variables that...