<div dir="ltr">+1 - I&#39;ve used SFTP for this in the past to push the config onto the server, verified it&#39;s valid XML and uploaded correctly with xmllint &amp; md5sum, and then done reloadxml over ESL. You could either push from the central server or pull from the freeswitch ones (perhaps in a cronjob).<div>

<div><br></div><div>I&#39;ve also heard of people storing their configs in git and doing a git clone into the appropriate directory on the servers. Then it&#39;s just &#39;git pull&#39; + reloadxml (well, depending on the module - but that&#39;s all you need for dialplan changes).</div>

<div><br></div><div>You can also get FreeSWITCH to use wget to download the dialplan over HTTP. See <a href="https://wiki.freeswitch.org/wiki/Mod_xml_curl#Alternative_ways_of_storing_static_configurations">https://wiki.freeswitch.org/wiki/Mod_xml_curl#Alternative_ways_of_storing_static_configurations</a> - I can&#39;t remember if exec actions work during a reloadxml though.</div>

<div><br></div><div>Truth is there&#39;s a million and one ways to get the file onto the server. :)</div><div><br></div><div>If the wget one works on reloadxml that would be the simplest I guess though. Might cause problems if there&#39;s any HTTP error though (500 Internal Server Error -&gt; blank result -&gt; no dialplan, whereas copying the file you can verify it before you reloadxml).</div>

<div><br></div><div><br></div><div><br></div><div><br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 2 October 2013 21:31, Guillermo Ruiz Camauer <span dir="ltr">&lt;<a href="mailto:grcamauer@gmail.com" target="_blank">grcamauer@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">How about a shared directory? Or rcp the files?  You can have a program that writes the XML to the shared directory and then connect via ESL and execute a reloadxml as suggested by Callum above.  This avoids any delays from http requests or maintaining a HTTP server.  I guess it would depend on how many Freeswitch servers you are configuring this way, and how often you are changing the XML files.<div>



<br></div><div>Guillermo</div></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Wed, Oct 2, 2013 at 5:05 PM, Vik Killa <span dir="ltr">&lt;<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">yeah something like that... i use nginx + php5-fpm to generate the XML though :)</div>

<div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 2, 2013 at 3:53 PM, crazygabry <span dir="ltr">&lt;<a href="mailto:crazygabry@gmail.com" target="_blank">crazygabry@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">So you suggest to have a server witch Apache that contains all dialplans,<br>


directories and so on and let freeswitch ask to him while parsing xml right?<br>
<br>
Thank you very much<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/best-way-to-change-configuration-files-programmatically-tp7595412p7595424.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/best-way-to-change-configuration-files-programmatically-tp7595412p7595424.html</a><br>





<div><div>Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</div></div></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Guillermo Ruiz Camauer<br>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
<br></blockquote></div><br></div></div></div>