[asterisk-dev] [Code Review] Add #tryinclude statement

Paul Belanger reviewboard at asterisk.org
Mon Nov 21 10:29:08 CST 2011

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

(Updated Nov. 21, 2011, 10:29 a.m.)

Review request for Asterisk Developers and leifmadsen.

Summary (updated)

Talking with Leif on IRC today, he was asking for a way to include a config file, that might not exist all the time.  Because #include 'foo.conf' to a non existing will fail to load a module, we decided #tryinclude might be better.

#exec cat foo.conf is another option, however this seems to require more CPU and opens a potential security issue.


  trunk/CHANGES 345734 
  trunk/main/config.c 345734 

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


Local development box testing.  A few more testers would be nice :D



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

More information about the asterisk-dev mailing list