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

Nandy Dagondon gcd at i.ph
Tue Jul 19 14:19:32 MSD 2011


hi daniel,

the X-PRE-PROCESS only purpose is to read the *.xml files in the said
directory at that point before proceeding further down. cool way of
organizing configuration files. nothing else.

if you want dynamic dialplan, use XML/Curl.

On Tue, Jul 19, 2011 at 5:17 PM, Daniel Knoll <daniel at danielknoll.de> wrote:

> 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
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110719/6673e11c/attachment.html 


More information about the FreeSWITCH-users mailing list