[Freeswitch-users] xml_curl dialplan and static files
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"?>
<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.
> 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
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users