Kyle,<br><br>Welcome to FreeSWITCH! We'll be happy to help answer your question. In return we would just like to know what you guys are up to over there at CSU. :) Are you using FreeSWITCH for anything in particular?<br>
<br>As far as your question goes, you'll most likely need to employ the "dynamic config w/ static fallback" setup. The way it works is that if your xml curl program returns a special "not found" config then FreeSWITCH will go looking in the static XML for the relevant information. The trick for you will be to return the "not found" message any time that you want the static XML to effect. The "special" config is this:<br>
<br><font size="1"><span style="font-family:courier new,monospace"><?xml version="1.0" encoding="UTF-8" standalone="no"?></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"><document type="freeswitch/xml"></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> <section name="result"></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> <result status="not found"/></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> </section></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"></document></span><br style="font-family:courier new,monospace">
</font><br>So, you'll need your xml curl script to recognize which dialplan contexts to handle and which to send back w/ the "not found" message.<br><br>Let us know how it goes.<br>-MC<br><br><div class="gmail_quote">
On Mon, Feb 6, 2012 at 11:58 AM, Kyle Haefner <span dir="ltr"><<a href="mailto:Kyle.Haefner@colostate.edu">Kyle.Haefner@colostate.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
I have not been able to glean enough from the wiki and Google searches<br>
to figure this out.<br>
<br>
I have freeswitch xml_curl fetching a dial plan. What I would *like*<br>
to do is have one context fetched<br>
dynamically while another context is from a static file (or fail-back<br>
to a static file).<br>
<br>
I would appreciate any help.<br>
<br>
Thanks!<br>
<br>
<br>
<br>
<br>
--<br>
Kyle Haefner, M.S.<br>
Communication Systems Programmer<br>
Colorado State University<br>
Fort Collins, CO<br>
Phone: <a href="tel:970-491-1012" value="+19704911012">970-491-1012</a><br>
Email: <a href="mailto:kyle.haefner@colostate.edu">kyle.haefner@colostate.edu</a><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>
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>