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@lists.freeswitch.org [mailto:freeswitch-users-bounces@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@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@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@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.