There are 3 places in rpt.conf to understand regarding macros. The first 2 parts are likely already set correctly. You’ll just need to add lines to the 3rd part.
The 1st part is understanding where the various sections [stanza] are. This sets where the DTMF functions and macros stanza are.
; Example node number 1000
[1000]
functions=functions1000
macro=macro1000
...
The 2nd part is the functions stanza. This sets the macro function to *5:
; Fuctions for node 1000
[functions1000]
5 = macro
...
The 3rd part is the macro stanza. This sets the actual macro commands
; Macro Commands for node 1000
[macro1000]
1 = *11500 ;Disconnect 1500
2 = *31500 ;Connect 1500
Now *51 will disconnect node 1500 and *52 will connect to node 1500