[Freeswitch-users] debugging config errors

Rick Jarvis rick at magicmail.mooo.com
Thu Mar 2 15:51:51 MSK 2017


It’s not though, that’s my point ;) It’s reporting the error to be around 13 lines earlier than it actually is (so in this example the problematic line was 7404). It’s hardly issue of the century I realise, but it’s messing my debugging processes up that’s all. Could there be whitespace somewhere that’s confusing it - does everyone else use “cat -n” to locate line numbers?

> On 1 Mar 2017, at 21:44, Brian West <brian at freeswitch.org> wrote:
> 
> It would be line 7391 in freeswitch.xml.fsxml.
> 
> On Wed, Mar 1, 2017 at 2:06 PM, Rick Jarvis <rick at magicmail.mooo.com <mailto:rick at magicmail.mooo.com>> wrote:
> But shouldn’t line 7391 have the unexpected closing tag that it mentions? I found it in the end, and it wasn’t line 7391!
> 
>> On 1 Mar 2017, at 16:08, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
>> 
>> missing closing tag is hard for this parser to find, so it will usually say at the end.  you are looking for a condition with no closing tag.
>> 
>>> On Mar 1, 2017, at 8:51 AM, Rick Jarvis <rick at magicmail.mooo.com <mailto:rick at magicmail.mooo.com>> wrote:
>>> 
>>> When getting something like:
>>> 
>>> freeswitch at internal> reloadxml
>>> +OK [[error near line 7391]: unexpected closing tag </condition>]
>>> 
>>> I’m sure I used to do something along the lines of:
>>> 
>>> cat -n /var/log/freeswitch/freeswitch.xml.fsxml | sed -n '7380,7400p'
>>> 
>>> And there at 7391 would be the offending line, surrounded by some of the lines before and after.
>>> 
>>> Now, however, the line is never at the corresponding number. Am I looking at the wrong file maybe?
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services: 
>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org <http://www.freeswitch.org/>
>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>> http://www.cluecon.com <http://www.cluecon.com/>
>> 
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
> 
> -- 
> Brian West
> brian at freeswitch.org <mailto:brian at freeswitch.org>
> Twitter: @FreeSWITCH , @briankwest
> 
> http://www.freeswitchbook.com <http://www.freeswitchbook.com/> 
> http://www.freeswitchcookbook.com <http://www.freeswitchcookbook.com/>
> 
> Allison prompts for FreeSWITCH:
> 
> https://www.gofundme.com/allison-prompts-for-freeswitch <https://www.gofundme.com/allison-prompts-for-freeswitch>
> Wish to schedule a meeting?
> 
> http://app.timebridge.com/#/meet/freeswitch <http://app.timebridge.com/#/meet/freeswitch>
> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
> T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
> Skype:briankwest
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> 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/20170302/6021d924/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list