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

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


Scott Griepentrog created ASTERISK-24487:
--------------------------------------------

             Summary: sorcery: 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
    Affects Versions: 13.0.0
            Reporter: 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