<div dir="ltr">Hi all!<div><br></div><div>I'd like to use mod_xml_curl for serving configurations to freeswitch. Im wondering how to approach 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">X-PRE-PROCESS includes properly.</span></div><div><br></div><div><br></div><div><br></div><div>as an example, this is request for sofia.conf:</div><div><br></div><div><div>hostname=FS01&section=<wbr>configuration&tag_name=<wbr>configuration&key_name=name&<wbr>key_value=sofia.conf&Event-<wbr>Name=REQUEST_PARAMS&Core-UUID=<wbr>118a9f3f-9ee4-4688-9ba0-<wbr>a510211cd6d3&FreeSWITCH-<wbr>Hostname=incfswitchtest01.<wbr>local&FreeSWITCH-Swi</div><div>tchname=FS01&FreeSWITCH-IPv4=<wbr>192.168.50.66&FreeSWITCH-IPv6=<wbr>%3A%3A1&Event-Date-Local=2018-<wbr>04-11%2015%3A29%3A39&Event-<wbr>Date-GMT=Wed,%2011%20Apr%<wbr>202018%2013%3A29%3A39%20GMT&<wbr>Event-Date-Timestamp=<wbr>1523453379037164&Event-<wbr>Calling-File=sofia.c</div><div>&Event-Calling-Function=<wbr>config_sofia&Event-Calling-<wbr>Line-Number=4246&Event-<wbr>Sequence=19</div><div><br></div><div><br></div><div><br></div><div>this is sofia.conf.xml we have on the file system:</div><div><br></div><div><br></div><div><div><document type="freeswitch/xml"></div><div>  <section name="configuration"></div><div>    <configuration name="sofia.conf" description="sofia Endpoint"></div><div><br></div><div>      <global_settings></div><div>        <param name="log-level" value="0"/></div><div>        <!--<param name="auto-restart" value="false"/>--></div><div>        <param name="debug-presence" value="0"/></div><div>        <!--<param name="capture-server" value="udp:<a href="http://homer.domain.com:5060" target="_blank">homer.domain.com:<wbr>5060</a>"/>--></div><div>      </global_settings></div><div><br></div><div>      <profiles></div><div>        <X-PRE-PROCESS cmd="include" data="../sip_profiles/*.xml"/></div><div>      </profiles></div><div><br></div><div>    </configuration></div><div>  </section></div><div></document></div></div><div><br></div><div><br></div><div><br></div><div>here we have a <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">X-PRE-PROCESS include command</span></div><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Can i just set the "pointers" to profile names e.g.:</span></div><div><br></div><div>

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">      <profiles></span>

<br></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div>        <profile name="internal"/></div><div>        <profile name="external"/></div><div>        </div><div>        <!-- any new profile adds here :=) --></div><div>

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">      </profiles></span>

<br></div></span></div><div><br></div><div>and wait for a new more specific request from FS with 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">profile=<profile name> to serve the entire profile configuration  ?</span></div><div><br></div><div><br></div><div>hostname=FS01&section=<wbr>configuration&tag_name=<wbr>configuration&key_name=name&<wbr>key_value=sofia.conf&Event-<wbr>Name=REQUEST_PARAMS&Core-UUID=<wbr>118a9f3f-9ee4-4688-9ba0-<wbr>a510211cd6d3&FreeSWITCH-<wbr>Hostname=incfswitchtest01.<wbr>local&FreeSWITCH-Swi</div><div>tchname=FS01&FreeSWITCH-IPv4=<wbr>192.168.50.66&FreeSWITCH-IPv6=<wbr>%3A%3A1&Event-Date-Local=2018-<wbr>04-11%2015%3A29%3A42&Event-<wbr>Date-GMT=Wed,%2011%20Apr%<wbr>202018%2013%3A29%3A42%20GMT&<wbr>Event-Date-Timestamp=<wbr>1523453382092765&Event-<wbr>Calling-File=sofia.c</div><div>&Event-Calling-Function=<wbr>launch_sofia_worker_thread&<wbr>Event-Calling-Line-Number=<wbr>2949&Event-Sequence=24&<wbr>profile=internal</div></div><div><br></div><div><br></div><div>what do i return here ?<br></div><div>Is that correct ?</div><div><br></div><div> <document> </div><div>  <section name="configuration"></div><div>    <profile name="myProfileName">   </div><div><br></div><div>        <!-- myProfile data  goes here --></div><div><br></div><div>     </profile> </div><div>    </section> </div><div>  </document><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>