[asterisk-bugs] [JIRA] (ASTERISK-24487) configuration: sections should be loadable as template even when not marked

Scott Griepentrog (JIRA) noreply at issues.asterisk.org
Mon Nov 3 16:00:29 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=223242#comment-223242 ] 

Scott Griepentrog commented on ASTERISK-24487:
----------------------------------------------

To be clear, 1.8/11 allow inclusion of sections not marked as a template in current revisions, and 12/13/trunk allow the same also but only prior to r425383.

> 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: Scott Griepentrog
>
> 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