Skip to content

Instantly share code, notes, and snippets.

@mindovermiles262
Created March 10, 2024 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindovermiles262/7a376a3392db5c96e948331905727068 to your computer and use it in GitHub Desktop.
Save mindovermiles262/7a376a3392db5c96e948331905727068 to your computer and use it in GitHub Desktop.
rpt conf
root@repeater:/etc/asterisk# cat rpt.conf
; Radio Repeater configuration file (for use with app_rpt)
; Your Repeater
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; This is where you define your nodes which can be connected to.
;
[nodes]
; Note, if you are using automatic update for allstar link nodes,
; no allstar link nodes should be defined here. Only place a definition
; for your local nodes, and private (off of allstar link) nodes here.
<REDACTED> = radio@127.0.0.1:4569/<REDACTED>,NONE ; This must be changed to your node number
<REDACTED> = radio@<REDACTED LOCAL IP>:4569/<REDACTED>,NONE ; This must be changed to your node number
<REDACTED> = radio@<REDACTED PUBLIC IP>:4569/<REDACTED>,NONE ; This must be changed to your node number
; and iax port number if not the default
[<REDACTED>] ; Change this to your assigned node number
; Must also be enabled in modules.conf
; Rx audio/signalling channel. Choose ONLY 1 per node stanza
; Enable the selected channel driver in modules.conf !!!
; rxchannel = dahdi/pseudo ; No radio (hub)
; rxchannel = SimpleUSB/usb_<REDACTED> ; SimpleUSB
; rxchannel = Pi/1 ; Raspberry Pi PiTA
rxchannel = Radio/usb_<REDACTED> ; USBRadio (DSP)
; rxchannel = Dahdi/1 ; PCI Quad card
; rxchannel = Beagle/1 ; BeagleBoard
; rxchannel = USRP/127.0.0.1:34001:32001; GNU Radio interface USRP
; rxchannel = Voter/<REDACTED> ; RTCM device
duplex = 3 ; 0 = Half duplex with no telemetry tones or hang time.
; Special Case: Full duplex if linktolink is set to yes.
; This mode is preferred when interfacing with an external multiport repeater controller.
; Comment out idrecording and idtalkover to suppress IDs also
; 1 = Half duplex with telemetry tones and hang time. Does not repeat audio.
; This mode is preferred when interfacing a simplex node.
; 2 = Full Duplex with telemetry tones and hang time.
; This mode is preferred when interfacing a repeater.
; 3 = Full Duplex with telemetry tones and hang time, but no repeated audio.
; 4 = Full Duplex with telemetry tones and hang time. Repeated audio only when the autopatch is down.
linktolink = no ; disables forcing physical half-duplex operation of main repeater while
; still keeping half-duplex semantics (optional)
linkmongain = 0 ; Link Monitor Gain adjusts the audio level of monitored nodes when a signal from another node or the local receiver is received.
; If linkmongain is set to a negative number the monitored audio will decrease by the set amount in db.
; If linkmongain set to a positive number monitored audio will increase by the set amount in db.
; The value of linkmongain is in db. The default value is 0 db.
erxgain = -3 ; Echolink receive gain adjustment
; Note: Gain is in db-volts (20logVI/VO)
etxgain = 3 ; Echolink transmit gain adjustment
; Note: Gain is in db-volts (20logVI/VO)
;eannmode = 1 ; 1 = Say only node number on echolink connects (default = 1)
; 2 = say phonetic call sign only on echolink connects
; 3 = say phonetic call sign and node number on echolink connects
;controlstates = controlstates ; system control state stanza
scheduler = schedule ; scheduler stanza
functions = functions ; Repeater Function stanza
phone_functions = functions ; Phone Function stanza
link_functions = functions ; Link Function stanza
telemetry = telemetry ; Telemetry stanza
morse = morse ; Morse stanza
wait_times = wait-times ; Wait times stanza
context = radio ; dialing context for phone
callerid = "Repeater" <0000000000> ; callerid for phone calls
accountcode = RADIO ; account code (optional)
hangtime = 100 ; squelch tail hang time (in ms) (optional, default 5 seconds, 5000 ms)
althangtime = 100 ; longer squelch tail
totime = 180000 ; transmit time-out time (in ms) (optional, default 3 minutes 180000 ms)
idrecording = |i W0TCO-A ; Main ID message
idtalkover = |i W0TCO-A ; Talkover ID message
; See Telemetry section Example: idrecording = rpt/nodenames/<REDACTED>
idtime = 540000 ; id interval time (in ms) (optional) Default 5 minutes (300000 ms)
politeid = 30000 ; time in milliseconds before ID timer expires to try and ID in the tail. (optional, default 30000)
unlinkedct = ct2 ; Send a this courtesy tone when the user unkeys if the node is not connected to any other nodes. (optional, default is none)
remotect = ct3 ; remote linked courtesy tone (indicates a remote is in the list of links)
;linkunkeyct = ct8 ; sent when a transmission received over the link unkeys
;nolocallinkct = 0 ; Send unlinkedct instead if another local node is connected to this node (hosted on the same PC).
; Supermon smlogger
connpgm=/usr/local/sbin/supermon/smlogger 1
discpgm=/usr/local/sbin/supermon/smlogger 0
;connpgm = yourconnectprogram ; Disabled. Execute a program you specify on connect. (default)
; passes 2 command line arguments to your program:
; 1. node number in this stanza (us)
; 2. node number being connected to us (them)
;discpgm = yourdisconnectprogram ; Disabled. Execute a program you specify on disconnect. (default)
; passes 2 command line arguments to your program:
; 1. node number in this stanza (us)
; 2. node number being disconnected from us (them)
;lnkactenable = 0 ; Set to 1 to enable the link activity timer. Applicable to standard nodes only.
;lnkacttime = 1800 ; Link activity timer time in seconds.
;lnkactmacro = *52 ; Function to execute when link activity timer expires.
;lnkacttimerwarn = 30seconds ; Message to play when the link activity timer has 30 seconds left.
;remote_inact_timeout = ; Specifies the amount of time without keying from the link. Set to 0 to disable timeout. (15 * 60)
;remote_timeout = ; Session time out for remote base. Set to 0 to disable. (60 * 60)
;remote_timeout_warning_freq = ; 30
;remote_timeout_warning = ; (3 * 60)
;nounkeyct = 0 ; Set to a 1 to eliminate courtesy tones and associated delays.
holdofftelem = 1 ; Hold off all telemetry when signal is present on receiver or from connected nodes
; except when an ID needs to be done and there is a signal coming from a connected node.
telemdefault = 0 ; 0 = telemetry output off
; 1 = telemetry output on (default = 1)
; 2 = timed telemetry output on command execution and for a short time thereafter.
telemdynamic = 1 ; 0 = disallow users to change the local telemetry setting with a COP command,
; 1 = Allow users to change the setting with a COP command. (default = 1)
;beaconing = 0 ; Send ID regardless of repeater activity (Required in the UK, but probably illegal in the US)
parrotmode = 0 ; 0 = Parrot Off (default = 0)
; 1 = Parrot On Command
; 2 = Parrot Always
; 3 = Parrot Once by Command
parrottime = 1000 ; Set the amount of time in milliseconds
; to wait before parroting what was received
;rxnotch=1065,40 ; (Optional) Notch a particular frequency for a specified
; b/w. app_rpt must have been compiled with
; the notch option
startup_macro =
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; *** Status Reporting ***
; Comment the following statpost line stop to reporting of the status of your node to stats.allstarlink.org
statpost_url = http://stats.allstarlink.org/uhandler ; Status updates
[functions]
; Mandatory Command Codes
1 = ilink,1 ; Disconnect specified link
2 = ilink,2 ; Connect specified link -- monitor only
3 = ilink,3 ; Connect specified link -- tranceive
4 = ilink,4 ; Enter command mode on specified link
70 = ilink,5 ; System status
99 = cop,6 ; PTT (phone mode only)
; End Mandatory Command Codes
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Macro Commands
5 = macro
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Autopatch Commands
; Note, This may be a good place for other 2 digit frequently used commands
61 = autopatchup,noct = 1,farenddisconnect = 1,dialtime = 20000 ; Autopatch up
62 = autopatchdn ; Autopatch down
; autopatchup can optionally take comma delimited setting=value pairs:
; context = string ; Override default context with "string"
; dialtime = ms ; Specify the max number of milliseconds between phone number digits (1000 milliseconds = 1 second)
; farenddisconnect = 1 ; Automatically disconnect when called party hangs up
; noct = 1 ; Don't send repeater courtesy tone during autopatch calls
; quiet = 1 ; Don't send dial tone, or connect messages. Do not send patch down message when called party hangs up
; Example: 123=autopatchup,dialtime=20000,noct=1,farenddisconnect=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Status Commands
721 = status,1 ; Force ID (global)
722 = status,2 ; Give Time of Day (global)
723 = status,3 ; Give software Version (global)
724 = status,4 ; Give GPS location info
725 = status,5 ; Last (dtmf) user
711 = status,11 ; Force ID (local only)
712 = status,12 ; Give Time of Day (local only)
; ilink commands 1 through 5 are defined in the Mandatory Command section
76 = ilink,6
806 = ilink,6 ; Disconnect all links
807 = ilink,7 ; Last Node to Key Up
808 = ilink,8 ; Connect specified link -- local monitor only
809 = ilink,9,<REDACTED>,"Testing" ; would send a text message to node <REDACTED> replace <REDACTED> with 0 for all connected nodes
810 = ilink,10 ; Disconnect all RANGER links (except permalinks)
811 = ilink,11 ; Disconnect a previously permanently connected link
812 = ilink,12 ; Permanently connect specified link -- monitor only
813 = ilink,13 ; Permanently connect specified link -- tranceive
815 = ilink,15 ; Full system status (all nodes)
816 = ilink,16 ; Reconnect links disconnected with "disconnect all links"
817 = ilink,17 ; MDC test (for diag purposes)
818 = ilink 18 ; Permanently Connect specified link -- local monitor only
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Control operator (cop) functions.
; 919 = cop,19 ; Select alternate hang time (althangtime)
921 = cop,21 ; Enable Parrot Mode
922 = cop,22 ; Disable Parrot Mode
; 923 = cop,23 ; Birdbath (Current Parrot Cleanup/Flush)
[functions-remote]
0 = remote,1 ; Retrieve Memory
1 = remote,2 ; Set freq.
2 = remote,3 ; Set tx PL tone
3 = remote,4 ; Set rx PL tone
40 = remote,100 ; Rx PL off
41 = remote,101 ; Rx PL on
42 = remote,102 ; Tx PL off
43 = remote,103 ; Tx PL on
44 = remote,104 ; Low Power
45 = remote,105 ; Medium Power
46 = remote,106 ; High Power
711 = remote,107 ; Bump -20
714 = remote,108 ; Bump -100
717 = remote,109 ; Bump -500
713 = remote,110 ; Bump +20
716 = remote,111 ; Bump +100
719 = remote,112 ; Bump +500
721 = remote,113 ; Scan - slow
724 = remote,114 ; Scan - quick
727 = remote,115 ; Scan - fast
723 = remote,116 ; Scan + slow
726 = remote,117 ; Scan + quick
729 = remote,118 ; Scan + fast
79 = remote,119 ; Tune
51 = remote,5 ; Long status query
52 = remote,140 ; Short status query
67 = remote,210 ; Send a *
69 = remote,211 ; Send a #
;91 = remote,99,CALLSIGN,LICENSETAG ; Remote base login.
; Define a different dtmf sequence for each user which is
; authorized to use the remote base to control access to it.
; For examble 9139583=remote,99,WB6NIL,G would grant access to
; the remote base and announce WB6NIL as being logged in.
; Another entry, 9148351=remote,99,WA6ZFT,E would grant access to
; the remote base and announce WA6ZFT as being logged in.
; When the remote base is disconnected from the originating node, the
; user will be logged out. The LICENSETAG argument is used to enforce
; tx frequency limits. See [txlimits] below.
85 = cop,6 ; Remote base telephone key
[telemetry]
ct1 = |t(350,0,100,2048)(500,0,100,2048)(660,0,100,2048)
ct2 = |t(660,880,150,2048)
ct3 = |t(440,0,150,4096)
ct4 = |t(550,0,150,2048)
ct5 = |t(660,0,150,2048)
ct6 = |t(880,0,150,2048)
ct7 = |t(660,440,150,2048)
ct8 = |t(700,1100,150,2048)
ranger = |t(1800,0,60,3072)(0,0,50,0)(1800,0,60,3072)(0,0,50,0)(1800,0,60,3072)(0,0,50,0)(1800,0,60,3072)(0,0,50,0)(1800,0,60,3072)(0,0,50,0)(1800,0,60,3072)(0,0,150,0)
remotemon = |t(1209,0,50,2048) ; local courtesy tone when receive only
remotetx = |t(1633,0,50,3000)(0,0,80,0)(1209,0,50,3000) ; local courtesy tone when linked Trancieve mode
cmdmode = |t(900,903,200,2048)
functcomplete = |t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)
remcomplete = |t(650,0,100,2048)(0,0,100,0)(650,0,100,2048)(0,0,100,0)(650,0,100,2048)
pfxtone = |t(350,440,30000,3072)
patchup = rpt/callproceeding
patchdown = rpt/callterminated
[morse]
speed = 20 ; Approximate speed in WPM
frequency = 800 ; Morse Telemetry Frequency
amplitude = 4096 ; Morse Telemetry Amplitude
idfrequency = 1065 ; Morse ID Frequency
idamplitude = 1024 ; Morse ID Amplitude
;
; This section allows wait times for telemetry events to be adjusted
; A section for wait times can be defined for every repeater
;
[wait-times]
telemwait = 2000 ; Time to wait before sending most telemetry
idwait = 500 ; Time to wait before starting ID
unkeywait = 2000 ; Time to wait after unkey before sending CT's and link telemetry
calltermwait = 2000 ; Time to wait before announcing "call terminated"
[events]
#includeifexists custom/rpt.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment