Author: gtjoseph Date: Tue Nov 4 14:47:30 2014 New Revision: 427227 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=427227 Log: config: BUG: Restore ability for non-templ to be used as base objs in config.
My recent refactor of config.c accidentally removed the capability for an object to inherit from a non-template object. This patch restores the capability to inherit from both template and non-template objects. Tested-by: George Joseph Reported-by: Scott Griepentrog ASTERISK-24487 #close Review: https://reviewboard.asterisk.org/r/4147/ Modified: branches/12/main/config.c Modified: branches/12/main/config.c URL: http://svnview.digium.com/svn/asterisk/branches/12/main/config.c?view=diff&rev=427227&r1=427226&r2=427227 ============================================================================== --- branches/12/main/config.c (original) +++ branches/12/main/config.c Tue Nov 4 14:47:30 2014 @@ -1678,7 +1678,7 @@ } else { struct ast_category *base; - base = ast_category_get(cfg, cur, "TEMPLATES=restrict"); + base = ast_category_get(cfg, cur, "TEMPLATES=include"); if (!base) { ast_log(LOG_WARNING, "Inheritance requested, but category '%s' does not exist, line %d of %s\n", cur, lineno, configfile); return -1; -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits
