Kyle,<br><br>Welcome to FreeSWITCH! We&#39;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&#39;ll most likely need to employ the &quot;dynamic config w/ static fallback&quot; setup. The way it works is that if your xml curl program returns a special &quot;not found&quot; config then FreeSWITCH will go looking in the static XML for the relevant information. The trick for you will be to return the &quot;not found&quot; message any time that you want the static XML to effect. The &quot;special&quot; config is this:<br>
<br><font size="1"><span style="font-family:courier new,monospace">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">&lt;document type=&quot;freeswitch/xml&quot;&gt;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">  &lt;section name=&quot;result&quot;&gt;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">    &lt;result status=&quot;not found&quot;/&gt;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">  &lt;/section&gt;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">&lt;/document&gt;</span><br style="font-family:courier new,monospace">
</font><br>So, you&#39;ll need your xml curl script to recognize which dialplan contexts to handle and which to send back w/ the &quot;not found&quot; 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">&lt;<a href="mailto:Kyle.Haefner@colostate.edu">Kyle.Haefner@colostate.edu</a>&gt;</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>