Hello,<div><br></div><div>I don'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"><<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@gmail.com</a>></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>
<section name="directory" description="User Directory"><br>
<X-PRE-PROCESS cmd="include" data="static/directory.xml"/><br>
</section><br>
<br>
This loads my directory configuration statically in memory.<br>
After I start FreeSWITCH, I load mod_xml_curl with 'fs_cli> load mod_xml_curl'<br>
(mod_xml_curl is not loaded when freeswitch starts)<br>
<br>
Here is my XML_CURL configuration:<br>
<br>
<configuration name="xml_curl.conf" description="cURL XML Gateway"><br>
<bindings><br>
<binding name="default"><br>
<param name="gateway-url" value="192.168.0.158"<br>
bindings="directory" /><br>
</binding><br>
</bindings><br>
</configuration><br>
<br>
FreeSWITCH does not seem to function properly after XML_CURL is loaded.<br>
If I run the 'user_data' 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> 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>