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"><<a href="mailto:daniel@danielknoll.de">daniel@danielknoll.de</a>></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'm a little bit confused about the X-PRE-PROCESS and XML Dialplan Module.<br>
<br>
I'm using a dynamic dialplan to include in FreeSwitch with<br>
<X-PRE-PROCESS cmd="exec" data="wget -qO -<br>
<a href="http://www.domain.com/dialplan.php" target="_blank">http://www.domain.com/dialplan.php</a>" /><br>
<br>
This don't work if i place X-PRE-PROCESS in at the top from public.xml<br>
outsite the <include> tag<br>
<br>
<include><br>
<context name="public"><br>
<extension name="123456789"><br>
<condition field="destination_number" expression="123456789"><br>
<action application="set" data="hangup_after_bridge=true"/><br>
<action application="javascript" data="app.js"/><br>
</condition><br>
</extension><br>
</context><br>
</include><br>
<br>
<br>
but<br>
<br>
this works if X-PRE-PROCESS is in the <include> tag, but it's not<br>
clean XML, because the root is missing<br>
<br>
<extension name="123456789"><br>
<condition field="destination_number" expression="123456789"><br>
<action application="set" data="hangup_after_bridge=true"/><br>
<action application="javascript" data="app.js"/><br>
</condition><br>
</extension><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">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>