Difference between revisions of "Structure of Config Files"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
idrecording = |iW1XYZ | idrecording = |iW1XYZ | ||
idtime = 540000 | idtime = 540000 | ||
+ | </pre> | ||
+ | |||
+ | ==Settings to name other Stanzas== | ||
+ | <pre> | ||
+ | [1000] | ||
+ | functions=functionsVHF | ||
+ | |||
+ | [1001] | ||
+ | functions=functionsVHF | ||
+ | |||
+ | [1002] | ||
+ | functions=functionsUHF | ||
+ | |||
+ | [functionsVHF] | ||
+ | ; Two meter Autopatch up is *6 | ||
+ | 6=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 | ||
+ | 0=autopatchdn ; Autopatch down | ||
+ | |||
+ | [functionsUHF] | ||
+ | ; 440 Autopatch up is *61 | ||
+ | 61=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 ; Autopatch up | ||
+ | 0=autopatchdn ; Autopatch down | ||
</pre> | </pre> | ||
''Note:'' A stanza is also called a context in Asterisk PBX terminology, particularly related to the dialplan. | ''Note:'' A stanza is also called a context in Asterisk PBX terminology, particularly related to the dialplan. | ||
− | |||
[[Category: Node Configuration]] | [[Category: Node Configuration]] |
Revision as of 23:41, 10 October 2017
Configuration files have a simple structure consisting of two parts, the stanza and key/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 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.
Config file comments are preceded with a semicolon.
In this example of two nodes the stanza is the node number and the key/value pairs set the CW ID and the ID timer:
[1998] idrecording = |iW1ABC idtime = 540000 ; 9 minutes [1999] idrecording = |iW1XYZ idtime = 540000
Settings to name other Stanzas
[1000] functions=functionsVHF [1001] functions=functionsVHF [1002] functions=functionsUHF [functionsVHF] ; Two meter Autopatch up is *6 6=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 0=autopatchdn ; Autopatch down [functionsUHF] ; 440 Autopatch up is *61 61=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 ; Autopatch up 0=autopatchdn ; Autopatch down
Note: A stanza is also called a context in Asterisk PBX terminology, particularly related to the dialplan.