Hi All, i used XML/Curl module, but the problem at this module is, that he ask the webserver for every call. It is better to have static diaplans (in my case these have the most call traffic) and after parsing static plan he ask the webserver. My X-PRE-PROCESS Option is described in XML/Curl Wiki under Sektion "Storing Static Dialplans." I found a little solution, but I think it is very dirty I use this without having "header('Content-Type: text/xml'); " in my php <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> If you had a solution, that -not- every call made a http request (only if don't find extension in static dialplan), I'm happy about that. Thanks for help Daniel 2011/7/19, Nandy Dagondon <gcd@i.ph>:
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Daniel Knoll Liberdastr.. 9 12047 Berlin fon +49 (0)179 20 16 50 8 mail daniel@danielknoll.de web www.danielknoll.de