Line 1: |
Line 1: |
− | Configuration files have a simple structure consisting of two parts, the stanza and key/value pairs. | + | [[Category: Node Configuration]] |
− | # 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. For example: <pre>[this is a stanza]...[this is another stanza]...</pre> Stanzas contain one or more ker/value pairs.
| + | [[Category:How to]] |
− | # Key/value pairs set various values such as the ID of the node. For example: <pre>myname=timothy ; There are some who call me Tim?</pre>
| + | Configuration files have a simple structure consisting of stanzas, key/value pairs and comments. A stanza is a block of text within a configuration file. It starts with a name (or number) surrounded by square brackets on a line by itself. Configuration files will have one or more stanzas. Each stanza continues until the next stanza or end of file. |
| + | <syntaxhighlight lang="ini"> |
| + | [this is a stanza] |
| + | ... |
| | | |
− | Config file comments are preceded with a semicolon.
| + | [this is another stanza] |
| + | ... |
| + | </syntaxhighlight> |
| + | Stanzas contain one or more ker/value pairs. Key/value pairs set various values within each stanza. |
| + | <syntaxhighlight lang="ini">myname=timothy ; There are some who call me Tim?</syntaxhighlight> |
| | | |
− | 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: | + | 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: |
| | | |
− | <pre> | + | <syntaxhighlight lang="ini"> |
| [1998] | | [1998] |
| idrecording = |iW1ABC | | idrecording = |iW1ABC |
Line 15: |
Line 22: |
| idrecording = |iW1XYZ | | idrecording = |iW1XYZ |
| idtime = 540000 | | idtime = 540000 |
− | </pre> | + | </syntaxhighlight> |
| | | |
| ==Settings to name other Stanzas== | | ==Settings to name other Stanzas== |
Line 21: |
Line 28: |
| | | |
| For example: | | For example: |
− | <pre> | + | <syntaxhighlight lang="ini"> |
| [1000] | | [1000] |
| functions=functionsVHF | | functions=functionsVHF |
Line 40: |
Line 47: |
| 61=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 ; Autopatch up | | 61=autopatchup,noct=1,farenddisconnect=1,dialtime=20000 ; Autopatch up |
| 0=autopatchdn ; Autopatch down | | 0=autopatchdn ; Autopatch down |
− | </pre> | + | </syntaxhighlight> |
| | | |
| ==Named Stanzas in rpt.conf== | | ==Named Stanzas in rpt.conf== |
Line 52: |
Line 59: |
| | | |
| ''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]]
| |