[Freeswitch-dev] FreeSWITCH reads commented lines from vars.xml

Oleg Khovayko khovayko at gmail.com
Sun Aug 29 07:48:11 PDT 2010


Hi all,

Today I found bug in the FreeSWITCH v 1.0.6.

When I write in the file vars.xml following codecs config lines {{{

<X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA"/>
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA"/>

<!--
<X-PRE-PROCESS cmd="set" 
data="global_codec_prefs=G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998"/> 

<X-PRE-PROCESS cmd="set" 
data="outbound_codec_prefs=PCMU,PCMA,GSM,H264,H263,H263-1998"/>
-->

}}}

FreeSWITCH reads config values from the comments, and, since comments 
located after correct values,
then values from comments overwrites correct config values.

and command: sofia status profile internal
shows:
CODECS IN               
G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998
CODECS OUT              
G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM,H264,H263,H263-1998

ATTN:
After modify vars.xml, for see this bug, need perform full restart of 
freeswitch, by commands like:
  /usr/local/etc/rc.d/freeswitch stop
/usr/local/etc/rc.d/freeswitch start

If you just execute "reloadxml" in the fs_cli, codecs lines will be 
unchanged.

Oleg




More information about the FreeSWITCH-dev mailing list