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't see it explicitly mentioned, just implicitly on the mod_xml_curl page. I'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"><<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>></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 <<a href="mailto:khovayko@gmail.com">khovayko@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> Today I found bug in the FreeSWITCH v 1.0.6.<br>
><br>
> When I write in the file vars.xml following codecs config lines {{{<br>
><br>
> <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA"/><br>
> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA"/><br>
><br>
> <!--<br>
> <X-PRE-PROCESS cmd="set"<br>
> data="global_codec_prefs=G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998"/><br>
><br>
> <X-PRE-PROCESS cmd="set"<br>
> data="outbound_codec_prefs=PCMU,PCMA,GSM,H264,H263,H263-1998"/><br>
> --><br>
><br>
> }}}<br>
><br>
> FreeSWITCH reads config values from the comments, and, since comments<br>
> located after correct values,<br>
> then values from comments overwrites correct config values.<br>
<br>
<br>
</div>That'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>
><br>
> and command: sofia status profile internal<br>
> shows:<br>
> CODECS IN<br>
> G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998<br>
> CODECS OUT<br>
> G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998<br>
><br>
> ATTN:<br>
> After modify vars.xml, for see this bug, need perform full restart of<br>
> freeswitch, by commands like:<br>
> /usr/local/etc/rc.d/freeswitch stop<br>
> /usr/local/etc/rc.d/freeswitch start<br>
><br>
> If you just execute "reloadxml" in the fs_cli, codecs lines will be<br>
> unchanged.<br>
><br>
> Oleg<br>
><br>
><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>
><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>