[asterisk-bugs] [JIRA] (ASTERISK-23032) Example Configurations use old '=>' syntax

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Dec 19 22:17:03 CST 2013


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

Matt Jordan commented on ASTERISK-23032:
----------------------------------------

On a somewhat interesting note, the Asterisk wiki implies that there is some difference between '=' and '=>' in some configuration files:

https://wiki.asterisk.org/wiki/display/AST/Configuration+Parser

{quote}
In some files, (e.g. mgcp.conf, dahdi.conf and agents.conf), the syntax is a bit different. In these files the syntax is as follows:

{noformat}
[section]
label1 = value1
label2 = value2
object => name
label3 = value3
label2 = value4
object2 => name2
{noformat}

In this syntax, we create objects with the settings defined above the object creation. Note that settings are inherited from the top, so in the example above object2 has inherited the setting for "label1" from the first object. 
{quote}

It does look like this is what {{mgcp.conf}} does. Ew.
                
> Example Configurations use old '=>' syntax
> ------------------------------------------
>
>                 Key: ASTERISK-23032
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23032
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/Configuration
>    Affects Versions: 12.0.0-beta2
>            Reporter: xrobau
>            Assignee: xrobau
>            Severity: Minor
>
> The example configuration files in 'configs' still use a lot of => for settings, instead of the modern '='
> Some even have an ad-hoc mix of both (eg, asterisk.conf.sample)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list