[asterisk-dev] [Code Review] Implement arbitrary-length read and write data extraction from files, using byte-based and line-based offsets

Tilghman Lesher tlesher at digium.com
Tue Jun 22 23:33:40 CDT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/737/
-----------------------------------------------------------

Review request for Asterisk Developers.


Summary
-------

Currently, the FILE() function only works with small files, reading from them, based upon a possible byte-offset and byte-length.  This patch allows files to additionally be written, by replacing arbitrary length sections with input text.  Additionally, the decision was made by the reporter to support line-based offsets and lengths, in addition to the existing byte-offsets and lengths.


This addresses bug 16461.
    https://issues.asterisk.org/view.php?id=16461


Diffs
-----

  /trunk/funcs/func_env.c 272085 
  /trunk/tests/test_func_file.c PRE-CREATION 

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


Testing
-------

A fairly exhaustive unit test module has been written.  The code passes all tests.


Thanks,

Tilghman




More information about the asterisk-dev mailing list