[Freeswitch-users] X-PRE-PROCESS and Dialplan XML Module

Daniel Knoll daniel at danielknoll.de
Tue Jul 19 13:17:39 MSD 2011


Hi FreeSwitch Group,
i'm a little bit confused about the X-PRE-PROCESS  and XML Dialplan Module.

I'm using a dynamic dialplan to include in FreeSwitch with
<X-PRE-PROCESS cmd="exec" data="wget -qO -
http://www.domain.com/dialplan.php" />

This don't work if i place X-PRE-PROCESS in at the top from public.xml
outsite the <include> tag

<include>
   <context name="public">
     <extension name="123456789">
        <condition field="destination_number" expression="123456789">
            <action application="set" data="hangup_after_bridge=true"/>
            <action application="javascript" data="app.js"/>
       </condition>
    </extension>
  </context>
</include>


but

this works if X-PRE-PROCESS is in the <include> tag, but it's not
clean XML, because the root is missing

<extension name="123456789">
   <condition field="destination_number" expression="123456789">
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="javascript" data="app.js"/>
   </condition>
</extension>


My Question is what is the right anatomy of a XML to include my
dialplan in the public.xml with X-PRE-PROCESS and exec wget ?


Thanks for your answers.
Daniel



More information about the FreeSWITCH-users mailing list