Giovanni,<br><br>This answer is very well-crafted. I think I will try to find a good spot on the wiki to add this knowledge. I didn&#39;t see it explicitly mentioned, just implicitly on the mod_xml_curl page. I&#39;ll add it to the list of stuff to talk about on the next FS community conf call.<br>
<br>Thanks,<br>MC<br><br><div class="gmail_quote">On Sun, Aug 29, 2010 at 8:05 AM, Giovanni Maruzzelli <span dir="ltr">&lt;<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sun, Aug 29, 2010 at 4:48 PM, Oleg Khovayko &lt;<a href="mailto:khovayko@gmail.com">khovayko@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; Today I found bug in the FreeSWITCH v 1.0.6.<br>
&gt;<br>
&gt; When I write in the file vars.xml following codecs config lines {{{<br>
&gt;<br>
&gt; &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;global_codec_prefs=PCMU,PCMA&quot;/&gt;<br>
&gt; &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=PCMU,PCMA&quot;/&gt;<br>
&gt;<br>
&gt; &lt;!--<br>
&gt; &lt;X-PRE-PROCESS cmd=&quot;set&quot;<br>
&gt; data=&quot;global_codec_prefs=G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998&quot;/&gt;<br>
&gt;<br>
&gt; &lt;X-PRE-PROCESS cmd=&quot;set&quot;<br>
&gt; data=&quot;outbound_codec_prefs=PCMU,PCMA,GSM,H264,H263,H263-1998&quot;/&gt;<br>
&gt; --&gt;<br>
&gt;<br>
&gt; }}}<br>
&gt;<br>
&gt; FreeSWITCH reads config values from the comments, and, since comments<br>
&gt; located after correct values,<br>
&gt; then values from comments overwrites correct config values.<br>
<br>
<br>
</div>That&#39;s not a bug.<br>
<br>
The PRE-PROCESS tags and values are read wherever they are.<br>
<br>
They are not parsed by the XML parser that parse all the rest of the<br>
config files, but they are used as macros by the preprocessor (that<br>
runs before the XML parser).<br>
<br>
So, if you want to comment it, you can edit as in:<br>
X-COMMENTED-PRE-PROCESS so the preprocessor will not use it.<br>
<br>
-giovanni<br>
<div class="im"><br>
<br>
&gt;<br>
&gt; and command: sofia status profile internal<br>
&gt; shows:<br>
&gt; CODECS IN<br>
&gt; G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998<br>
&gt; CODECS OUT<br>
&gt; G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998<br>
&gt;<br>
&gt; ATTN:<br>
&gt; After modify vars.xml, for see this bug, need perform full restart of<br>
&gt; freeswitch, by commands like:<br>
&gt;  /usr/local/etc/rc.d/freeswitch stop<br>
&gt; /usr/local/etc/rc.d/freeswitch start<br>
&gt;<br>
&gt; If you just execute &quot;reloadxml&quot; in the fs_cli, codecs lines will be<br>
&gt; unchanged.<br>
&gt;<br>
&gt; Oleg<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-dev mailing list<br>
&gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
<br>
</div><font color="#888888">--<br>
Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
Cell : +39-347-2665618<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>