[asterisk-bugs] [Asterisk 0010643]: Config parser eats comments for breakfast

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Sep 4 15:34:49 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10643 
====================================================================== 
Reported By:                jsmith
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   10643
Category:                   Core/ManagerInterface
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-04-2007 14:04 CDT
Last Modified:              09-04-2007 15:34 CDT
====================================================================== 
Summary:                    Config parser eats comments for breakfast
Description: 
The Asterisk config parser (used by AMI for GetConfig/UpdateConfig, etc.)
eats comments on the end of lines, and makes it harder for people to follow
the configuration files after they've been edited by Asterisk.

I've talked with murf about this, and he asked me to open a bug so that he
can track this and fix it.
====================================================================== 

---------------------------------------------------------------------- 
 bkruse - 09-04-07 15:34  
---------------------------------------------------------------------- 
Does this mean that when I am using updateconfig and getconfig that I can
possibly start sending comments also?

Also, will it be a lot of overhead to receive/send those ;comments and
blank lines?

Please keep me updated to see if I need to change the API. Now we just
have comment => whatever for context's in the dialplan, and they get
parsed.

However, I could make the GUI clean up the code, and make it MUCH more
editable and readable.

This could possibly lead to a perfect integration of creating things in
the GUI, and the user being able to edit them, as where now it its kind of
convoluted and obfuscated at points.

I like it.

-bk 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-04-07 15:34  bkruse         Note Added: 0069931                          
======================================================================




More information about the asterisk-bugs mailing list