Difference between revisions of "Structure of Config Files"

From "PTTLink Wiki"
Jump to navigation Jump to search
(Created page with "Configuration files have a simple structure consisting of two parts: # A stanza is a section header which is a name (or number) surrounded by square brackets. A stanza is also...")
 
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 header which is a name (or number) surrounded by square brackets. A stanza is also called a context in Asterisk PBX terminology. Stanzas contain one or more ker/valus pairs.
+
# 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. Stanzas contain one or more ker/valus pairs. A config file will have one or more stanza. Each stanza continues until the next stanza or end of file.
 
# Key/value pairs which set various values such as the ID of the node.
 
# Key/value pairs which set various values such as the ID of the node.
  
 
For example,
 
For example,

Revision as of 18:05, 9 October 2017

Configuration files have a simple structure consisting of two parts:

  1. 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. Stanzas contain one or more ker/valus pairs. A config file will have one or more stanza. Each stanza continues until the next stanza or end of file.
  2. Key/value pairs which set various values such as the ID of the node.

For example,