Hello,<div><br></div><div>I don&#39;t think you can use both at the same time...</div><div>One option is to write the xml dinamically from the xml-curl server before reloading it...</div><div><br></div><div>cheers<br><br><div class="gmail_quote">

On Thu, Jun 7, 2012 at 2:56 PM, Vik Killa <span dir="ltr">&lt;<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Is it possible to load freeswitch with static XML and then load mod_xml_curl?<br>
It seems FreeSWITCH does not work correctly when this is done.<br>
Here is an example:<br>
In freeswitch.xml, I have:<br>
  &lt;section name=&quot;directory&quot; description=&quot;User Directory&quot;&gt;<br>
    &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;static/directory.xml&quot;/&gt;<br>
  &lt;/section&gt;<br>
<br>
This loads my directory configuration statically in memory.<br>
After I start FreeSWITCH, I load mod_xml_curl with &#39;fs_cli&gt; load mod_xml_curl&#39;<br>
(mod_xml_curl is not loaded when freeswitch starts)<br>
<br>
Here is my XML_CURL configuration:<br>
<br>
    &lt;configuration name=&quot;xml_curl.conf&quot; description=&quot;cURL XML Gateway&quot;&gt;<br>
        &lt;bindings&gt;<br>
            &lt;binding name=&quot;default&quot;&gt;<br>
                &lt;param name=&quot;gateway-url&quot; value=&quot;192.168.0.158&quot;<br>
bindings=&quot;directory&quot; /&gt;<br>
            &lt;/binding&gt;<br>
        &lt;/bindings&gt;<br>
    &lt;/configuration&gt;<br>
<br>
FreeSWITCH does not seem to function properly after XML_CURL is loaded.<br>
If I run the &#39;user_data&#39; API, FS hangs there for a long time and<br>
eventually returns the password from memory (it does not make an<br>
XML_CURL request)<br>
Here is example:<br>
fs_cli&gt; user_data <a href="mailto:1000@domain.com">1000@domain.com</a> param password<br>
<br>
I guess the ultimate question is this:<br>
Is there any way to setup XML_CURL to failover to static XML (loaded in memory)?<br>
<br>
Thanks!<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>