[Freeswitch-users] Mixing dynamic (xml_curl) and static (XML) dialplans

Weigel, Stefan Stefan.Weigel at allianz-warranty.com
Mon Apr 23 17:14:24 MSD 2012


Hello Anthony,

sorry for my late response. Meanwhile I decided to put all extensions into database. It's more straight forward if I need to change some detail cause I want to manage the dialplan
within a web ui.


Thanks for your reply and best reagards,

Stefan

-----------------------------------------------
-----Ursprüngliche Nachricht-----
Von: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale
Gesendet: Freitag, 20. April 2012 02:18
An: FreeSWITCH Users Help
Betreff: Re: [Freeswitch-users] Mixing dynamic (xml_curl) and static (XML) dialplans

Did you miss my response?



On Wed, Apr 18, 2012 at 10:11 AM, Weigel, Stefan
<Stefan.Weigel at allianz-warranty.com> wrote:
> Hi Brian,
>
>
>
> I configured xml_curl.conf.xml with the bindings (using fs_curl as dynamic
> backend).
>
>
>
> Having this content in the static file..
>
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>
> <document type="freeswitch/xml">
>
>
>
>   <section name="dialplan" description="RE Dial Plan For FreeSwitch">
>
>     <context name="public">
>
>
>
>      <!--
>
>       <extension name="outside_call" continue="true">
>
>         <condition>
>
>           <action application="set" data="outside_call=true"/>
>
>         </condition>
>
>       </extension>
>
>      -->
>
>
>
>     </context>
>
>   </section>
>
> </document>
>
>
>
> ..the dialplan processing continues with xml curl. But as soon as any
> <action> command Is triggered, the dialplan processing doesn't execute xml
> curl.
>
>
>
>
>
>
>
> Best regards
>
>
>
> Stefan
>
>
>
>
>
> Von: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von Brian
> Foster
> Gesendet: Mittwoch, 18. April 2012 16:35
> An: FreeSWITCH Users Help
> Betreff: Re: [Freeswitch-users] Mixing dynamic (xml_curl) and static (XML)
> dialplans
>
>
>
>
>
>>>   <param name="dialplan" value="XML:/tmp/test.xml,XML"/>
>
>
>
> Not even close. Please read and re-read
> http://wiki.freeswitch.org/wiki/Mod_xml_curl and specifically look at
> bindings.
>
> -BDF
>
> On Wed, Apr 18, 2012 at 9:20 AM, Weigel, Stefan
> <Stefan.Weigel at allianz-warranty.com> wrote:
>
> Hi,
>
>
>
> I'm trying to mix static (XML file) and dynamic (mod_xml_curl) dialplan
> content.
>
> My static dialplan looks like:
>
>
>
>
>
> /tmp/test.xml:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>
> <document type="freeswitch/xml">
>
>   <section name="dialplan" description="RE Dial Plan For FreeSwitch">
>
>     <context name="public">
>
>
>
>     <extension name="unloop">
>
>       <condition field="${unroll_loops}" expression="^true$"/>
>
>       <condition field="${sip_looped_call}" expression="^true$">
>
>         <action application="deflect" data="${destination_number}"/>
>
>       </condition>
>
>     </extension>
>
>
>
>     <extension name="outside_call" continue="true">
>
>       <condition>
>
>         <action application="set" data="outside_call=true"/>
>
>       </condition>
>
>     </extension>
>
>
>
>     <extension name="call_debug" continue="true">
>
>       <condition field="${call_debug}" expression="^true$" break="never">
>
>         <action application="info"/>
>
>       </condition>
>
>     </extension>
>
>
>
>     </context>
>
>   </section>
>
> </document>
>
>
>
> I changed parameter "dialplan" in profile internal.xml:
>
>
>
>     <param name="dialplan" value="XML:/tmp/test.xml,XML"/>
>
>
>
> But when placing a call I only see that diaplan from static XML is parsed
> and executed (message "has executed the last dialplan instruction, hanging
> up.").
>
>
>
>
>
> What's going wrong ?
>
>
>
>
>
>
>
> Thanks and cheers
>
>
>
> Stefan
>
>
>
>
> _________________________________________________________________________
> 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
>
>
>
>
> --
> Brian D. Foster
> Endigo Computer LLC
> Email: bdfoster at endigotech.com
> Phone: 317-800-7876
> Indianapolis, Indiana, USA
>
> This message contains confidential information and is intended for those
> listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If
> you are not the intended recipient you are notified that disclosing,
> copying, distributing or taking any action in reliance on the contents of
> this information is strictly prohibited. E-mail transmission cannot be
> guaranteed to be secure or error-free as information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> The sender therefore does not accept liability for any errors or omissions
> in the contents of this message, which arise as a result of e-mail
> transmission. If verification is required please request a hard-copy
> version.
>
>
> _________________________________________________________________________
> 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
>



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900

_________________________________________________________________________
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



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