[Freeswitch-users] XML parser bug
David Villasmil
david.villasmil.work at gmail.com
Wed Mar 30 16:21:37 MSD 2011
Hello,
I noticed the following:
I have my sofia.conf.xml like this:
<configuration name="sofia.conf" description="sofia Endpoint">
<global_settings>
<param name="log-level" value="0"/>
<!-- <param name="auto-restart" value="false"/> -->
<param name="debug-presence" value="0"/>
</global_settings>
<!--
The rabbit hole goes deep. This includes all the
profiles in the sip_profiles directory that is up
one level from this directory.
<profiles>
<X-PRE-PROCESS cmd="include" data="../sip_profiles/*.xml" />
</profiles>
-->
</configuration>
when I start FS, latest GIT:
freeswitch -version
FreeSWITCH version: 1.0.head (git-7e52acf 2011-03-28 22-18-47 -0500)
I get the following output:
./freeswitch -waste
WARNING: Wasting up to 8 megs of memory per thread.
2011-03-30 14:02:23.200097 [INFO] switch_event.c:615 Activate Eventing
Engine.
2011-03-30 14:02:23.211052 [DEBUG] switch_event.c:594 Create event dispatch
thread 0
Cannot Initialize [[error near line 1521]: unclosed <!--]
If i then change my sofia to:
<configuration name="sofia.conf" description="sofia Endpoint">
<global_settings>
<param name="log-level" value="0"/>
<!-- <param name="auto-restart" value="false"/> -->
<param name="debug-presence" value="0"/>
</global_settings>
<!--
The rabbit hole goes deep. This includes all the
profiles in the sip_profiles directory that is up
one level from this directory.
<profiles>
</profiles>
-->
</configuration>
Please note the absence of: <X-PRE-PROCESS cmd="include"
data="../sip_profiles/*.xml" />
FS Starts normally!
Is this the correct behaviour? Isn't comments supposed NOT to be read?
Thanks all.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110330/c022ff67/attachment.html
More information about the FreeSWITCH-users
mailing list