[asterisk-dev] [Code Review] Iterate though cdr.conf setting

Paul Belanger reviewboard at asterisk.org
Sun Sep 11 02:42:46 CDT 2011

This is an automatically generated e-mail. To reply, visit:

(Updated Sept. 11, 2011, 2:42 a.m.)

Review request for Asterisk Developers and leifmadsen.


v2: Tilghman's changes.


We had some internal discussions this week about how to update configuration files so they worked the same across all modules.  In this example, I've updated cdr.conf to use the same method of iterating over all .conf file variables.  Most people agreed this was the proper way to parse a configuration file.

If we all agreed, I'd like this method to become the standard way used for parsing configuration file.  Obviously we have some questions that need to be answered, specifically this _may_ break existing configuration files if a duplicate variable is declared later in a .conf file (AKA unused garbage settings).

FWIW: This is how we do it for manager.conf, features.conf, sip.conf, plus various other modules.


Diffs (updated)

  trunk/main/cdr.c 335124 

Diff: https://reviewboard.asterisk.org/r/1426/diff


Local asterisk box.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110911/f1bd1208/attachment.htm>

More information about the asterisk-dev mailing list