Line 456: |
Line 456: |
| functions = functionsUHF ; pointer to 440 repeater functions stanza | | functions = functionsUHF ; pointer to 440 repeater functions stanza |
| </pre> | | </pre> |
| + | |
| + | = Function Classes = |
| + | Function classes are names for categories of functions. There are several function classes defined. They are described in the table below: |
| + | {| class="wikitable" |
| + | !Class |
| + | !Description |
| + | |- |
| + | |cop |
| + | |Control operator commands |
| + | |- |
| + | |ilink |
| + | |Internet linking commands |
| + | |- |
| + | |status |
| + | |User Status Commands |
| + | |- |
| + | |autopatchup |
| + | |Autopatch up commands |
| + | |- |
| + | |autopatchdn |
| + | |Autopatch down commands |
| + | |- |
| + | |remote |
| + | |Remote base commands |
| + | |- |
| + | |macro |
| + | |Command Macros |
| + | |} |
| + | Most of the above command classes require a function method and possibly one or more additional command parameters. Function methods are discussed next. |
| + | |
| + | = Function Methods = |
| + | Function methods are numbers which identify a specific function to execute within a function class. Function Methods are optional and in some cases should be omitted (Such as with the autopatchup method) A complete and up-to-date description of all functon methods can be found in the app_rpt.c source file. Some function methods are shown below as an example below: |
| + | 1 - Force ID (global) |
| + | 2 - Give Time of Day (global) |
| + | 3 - Give software Version (global) |
| + | 11 - Force ID (local only) |
| + | 12 - Give Time of Day (local only) |
| + | |
| + | = Function Options = |
| + | Some Function Methods can take function options. These are specified after the Function Method separated with commas. Not all commands require or take Function options. An example of a method which can accept Function Options is the autopatchup method. |
| + | |
| + | = Putting it all Together = |
| + | A small excerpt from the function stanza of rpt.conf is hown below. |
| + | [functions] |
| + | 1=ilink,1 ; Specific link disconnect |
| + | 6=autopatchup,noct=1,farenddisconnect=1,dialtime=2000 ; Autopatch up |
| + | The above example contains DTMF functions with all of the parameters discussed on previous pages. |
| + | |
| + | In the above example: |
| + | * *1 followed by a node number disconnects a specific link. The function class is ''ilink'' and the function method is ''1'' |
| + | * *6 followed by a phone number brings up the autopatch with the function options specified. Note that there is no function method defined, but there are function options present. |
| | | |
| ==hangtime=== | | ==hangtime=== |