[Freeswitch-users] XML parser bug

João Mesquita jmesquita at freeswitch.org
Wed Mar 30 16:34:04 MSD 2011


This is not a bug and has been discussed several times on this mailing list.
You can't comment X-PRE-PROCESS tags like that. Make a quick google search
and you'll find several discussions about that including an explanation from
Tony on the subject.

Regards,
João Mesquita



On Wed, Mar 30, 2011 at 9:21 AM, David Villasmil <
david.villasmil.work at gmail.com> wrote:

> 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
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110330/9b026737/attachment-0001.html 


More information about the FreeSWITCH-users mailing list