[Freeswitch-users] xml_curl dialplan and static files

Michael Collins msc at freeswitch.org
Tue Feb 7 00:36:01 MSK 2012


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?

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:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
  <section name="result">
    <result status="not found"/>

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.

Let us know how it goes.

On Mon, Feb 6, 2012 at 11:58 AM, Kyle Haefner <Kyle.Haefner at colostate.edu>wrote:

> Hi All,
> I have not been able to glean enough from the wiki and Google searches
> to figure this out.
> I have freeswitch xml_curl fetching a dial plan. What I would *like*
> to do is have one context fetched
> dynamically while another context is from a static file (or fail-back
> to a static file).
> I would appreciate any help.
> Thanks!
> --
> Kyle Haefner, M.S.
> Communication Systems Programmer
> Colorado State University
> Fort Collins, CO
> Phone: 970-491-1012
> Email:  kyle.haefner at colostate.edu
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120206/5b85d7b2/attachment.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list