Difference between revisions of "Structure of Config Files"
Jump to navigation
Jump to search
Tag: visualeditor |
|||
Line 1: | Line 1: | ||
Configuration files have a simple structure consisting of two parts: | Configuration files have a simple structure consisting of two parts: | ||
− | # A stanza is a section of the config file. It starts with a name (or number) surrounded by square brackets. A stanza is also called a context in Asterisk PBX terminology. A config file will have one or more stanza. Each stanza continues until the next stanza or end of file. Stanzas contain one or more ker/value pairs. | + | # A stanza is a section of the config file. It starts with a name (or number) surrounded by square brackets on a line by itself. A stanza is also called a context in Asterisk PBX terminology. A config file will have one or more stanza. Each stanza continues until the next stanza or end of file. Stanzas contain one or more ker/value pairs. |
# Key/value pairs set various values such as the ID of the node. | # Key/value pairs set various values such as the ID of the node. | ||
For example, | For example, | ||
+ | |||
+ | <code> | ||
+ | [1998] | ||
+ | id=w1abc | ||
+ | |||
+ | [1999] | ||
+ | id=w1def | ||
+ | </code> |
Revision as of 18:19, 9 October 2017
Configuration files have a simple structure consisting of two parts:
- A stanza is a section of the config file. It starts with a name (or number) surrounded by square brackets on a line by itself. A stanza is also called a context in Asterisk PBX terminology. A config file will have one or more stanza. Each stanza continues until the next stanza or end of file. Stanzas contain one or more ker/value pairs.
- Key/value pairs set various values such as the ID of the node.
For example,
[1998]
id=w1abc
[1999]
id=w1def