[Freeswitch-users] xml_curl dialplan and static files
Kyle Haefner
Kyle.Haefner at colostate.edu
Tue Feb 7 01:01:45 MSK 2012
Hi Michael,
Awesome.. I was actually very close, I was trying the "not found"
route but had the section name as "dialplan", changing it to "result"
made it work. thanks!
At CSU we use Freeswitch as part of sipXecs and BigBlueButton
production deployments. Really, though, Freeswitch is our go-to for
anything that needs to be customized or scripted. The most recent
example of this is using the xml_curl function to build a pre-set
conference for emergency situations. Freeswitch dials out to a group
of high-level administrators and once they answer and prove they are
human by pressing a number key they are bridged into a conference.
This a good way to get groups of people like our Public Safety Team
together.
Thanks!
Kyle
On Mon, Feb 6, 2012 at 2:36 PM, Michael Collins <msc at freeswitch.org> wrote:
> Kyle,
>
> 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"/>
> </section>
> </document>
>
> 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.
> -MC
>
> On Mon, Feb 6, 2012 at 11:58 AM, Kyle Haefner <Kyle.Haefner at colostate.edu<mailto: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<tel:970-491-1012>
> Email: kyle.haefner at colostate.edu<mailto:kyle.haefner at colostate.edu>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org<mailto: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<mailto: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
>
--
Kyle Haefner, M.S.
Communication Systems Programmer
Colorado State University
Fort Collins, CO
Phone: 970-491-1012
Email: kyle.haefner at colostate.edu
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list