<div dir="ltr">Yes, afaik, the x-pre-process is done BEFORE the XML is parsed (which is why you can&#39;t comment it out) and just does a wget and replaces itself with the file it grabbed.<div><br clear="all"><div dir="ltr">

<span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Tue, Jul 19, 2011 at 1:19 PM, Nandy Dagondon <span dir="ltr">&lt;<a href="mailto:gcd@i.ph">gcd@i.ph</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

hi daniel,<div><br></div><div>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. </div>
<div>

<br></div><div>if you want dynamic dialplan, use XML/Curl.</div><div><br><div class="gmail_quote">On Tue, Jul 19, 2011 at 5:17 PM, Daniel Knoll <span dir="ltr">&lt;<a href="mailto:daniel@danielknoll.de" target="_blank">daniel@danielknoll.de</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi FreeSwitch Group,<br>
i&#39;m a little bit confused about the X-PRE-PROCESS  and XML Dialplan Module.<br>
<br>
I&#39;m using a dynamic dialplan to include in FreeSwitch with<br>
&lt;X-PRE-PROCESS cmd=&quot;exec&quot; data=&quot;wget -qO -<br>
<a href="http://www.domain.com/dialplan.php" target="_blank">http://www.domain.com/dialplan.php</a>&quot; /&gt;<br>
<br>
This don&#39;t work if i place X-PRE-PROCESS in at the top from public.xml<br>
outsite the &lt;include&gt; tag<br>
<br>
&lt;include&gt;<br>
   &lt;context name=&quot;public&quot;&gt;<br>
     &lt;extension name=&quot;123456789&quot;&gt;<br>
        &lt;condition field=&quot;destination_number&quot; expression=&quot;123456789&quot;&gt;<br>
            &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
            &lt;action application=&quot;javascript&quot; data=&quot;app.js&quot;/&gt;<br>
       &lt;/condition&gt;<br>
    &lt;/extension&gt;<br>
  &lt;/context&gt;<br>
&lt;/include&gt;<br>
<br>
<br>
but<br>
<br>
this works if X-PRE-PROCESS is in the &lt;include&gt; tag, but it&#39;s not<br>
clean XML, because the root is missing<br>
<br>
&lt;extension name=&quot;123456789&quot;&gt;<br>
   &lt;condition field=&quot;destination_number&quot; expression=&quot;123456789&quot;&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
        &lt;action application=&quot;javascript&quot; data=&quot;app.js&quot;/&gt;<br>
   &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
<br>
My Question is what is the right anatomy of a XML to include my<br>
dialplan in the public.xml with X-PRE-PROCESS and exec wget ?<br>
<br>
<br>
Thanks for your answers.<br>
Daniel<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>