[asterisk-bugs] [JIRA] (ASTERISK-24487) configuration: sections should be loadable as template even when not marked
George Joseph (JIRA)
noreply at issues.asterisk.org
Tue Nov 4 10:42:31 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-24487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on ASTERISK-24487 started by George Joseph.
> configuration: sections should be loadable as template even when not marked
> ---------------------------------------------------------------------------
>
> Key: ASTERISK-24487
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24487
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/Configuration
> Affects Versions: 13.0.0
> Reporter: Scott Griepentrog
> Assignee: George Joseph
>
> According to the [wiki documentation on using templates|https://wiki.asterisk.org/wiki/display/AST/Using+Templates], any section is valid for inclusion as a template without being marked.
> {quote}
> This works even when the section name referenced in parentheses is not defined as a template as in the case of the "not-a-template" section.
> {quote}
> This pjsip.conf:
> {noformat}
> [endpoint]
> type=endpoint
> context=default
> allow=!all,ulaw
> direct_media=no
> [alice1](endpoint)
> {noformat}
> Results in error:
> {noformat}
> WARNING[30560] config.c: Inheritance requested, but category 'endpoint' does not exist, line 12 of /var/tmp/asterisk-testsuite/4601eff4190a32b130a52e1a84b03a00/run_1/ast2/etc/asterisk/pjsip.conf
> ERROR[30560] res_sorcery_config.c: Contents of config file 'pjsip.conf' are invalid and cannot be parsed
> {noformat}
> This issue can be resolved by adding \(!) to \[endpoint] line, but this is a change from previous version and does not match documented behavior.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list