Add TRUNK_DEBUG=1 config option in [GLOBAL] that enables detailed logging of trunk connection lifecycle: state on connect/disconnect, heartbeat countdown warnings near timeout, every non-heartbeat frame with direction and type, send path decisions, and prefix matching details on the trunk server. Helps diagnose connection issues reported in #1 where the remote side kills connections.
121 lines
3.2 KiB
Plaintext
121 lines
3.2 KiB
Plaintext
###################################################################
|
|
#
|
|
# Configuration file for the SvxReflector SvxLink conference node
|
|
#
|
|
###################################################################
|
|
|
|
[GLOBAL]
|
|
#CFG_DIR=svxreflector.d
|
|
TIMESTAMP_FORMAT="%c"
|
|
LISTEN_PORT=5300
|
|
#SQL_TIMEOUT=600
|
|
#SQL_TIMEOUT_BLOCKTIME=60
|
|
#CODECS=OPUS
|
|
TG_FOR_V1_CLIENTS=999
|
|
#LOCAL_PREFIX=1
|
|
#CLUSTER_TGS=222,2221,91
|
|
#RANDOM_QSY_RANGE=12399:100
|
|
#HTTP_SRV_PORT=8080
|
|
COMMAND_PTY=/dev/shm/reflector_ctrl
|
|
#ACCEPT_CALLSIGN="[A-Z0-9][A-Z]{0,2}\\d[A-Z0-9]{0,3}[A-Z](?:-[A-Z0-9]{1,3})?"
|
|
#REJECT_CALLSIGN=""
|
|
#ACCEPT_CERT_EMAIL="\\w+(?:[-._+]\\w+)*@\\w+(?:\\.\\w+)*"
|
|
#CERT_PKI_DIR=pki/
|
|
#CERT_CA_BUNDLE=ca-bundle.crt
|
|
#CERT_CA_KEYS_DIR=private/
|
|
#CERT_CA_PENDING_CSRS_DIR=pending_csrs/
|
|
#CERT_CA_CSRS_DIR=csrs/
|
|
#CERT_CA_CERTS_DIR=certs/
|
|
CERT_CA_HOOK=@SVX_SHARE_INSTALL_DIR@/ca-hook.py
|
|
|
|
[ROOT_CA]
|
|
#KEYFILE=svxreflector_root_ca.key
|
|
#CRTFILE=svxreflector_root_ca.crt
|
|
#COMMON_NAME=SvxReflector Root CA
|
|
#ORG_UNIT=SvxLink
|
|
#ORG=MyOrg
|
|
#LOCALITY=MyTown
|
|
#STATE=StateOrProvince
|
|
#COUNTRY=XX
|
|
#EMAIL_ADDRESS=sysop@svxlink.example.org
|
|
|
|
[ISSUING_CA]
|
|
#KEYFILE=svxreflector_issuing_ca.key
|
|
#CSRFILE=svxreflector_issuing_ca.csr
|
|
#CRTFILE=svxreflector_issuing_ca.crt
|
|
#COMMON_NAME=SvxReflector Issuing CA
|
|
#ORG_UNIT=SvxLink
|
|
#ORG=MyOrg
|
|
#LOCALITY=MyTown
|
|
#STATE=StateOrProvince
|
|
#COUNTRY=XX
|
|
#EMAIL_ADDRESS=sysop@svxlink.example.org
|
|
|
|
[SERVER_CERT]
|
|
#KEYFILE=svxreflector.key
|
|
#CSRFILE=svxreflector.csr
|
|
#CRTFILE=svxreflector.crt
|
|
#COMMON_NAME=svxreflector.example.org
|
|
#ORG_UNIT=SvxLink
|
|
#ORG=MyOrg
|
|
#LOCALITY=MyTown
|
|
#STATE=StateOrProvince
|
|
#COUNTRY=XX
|
|
#SUBJECT_ALT_NAME=DNS:public-hostname.example.org,IP:172.17.1.42
|
|
#EMAIL_ADDRESS=sysop@svxlink.example.org
|
|
|
|
[USERS]
|
|
#SM0ABC-1=MyNodes
|
|
#SM0ABC-2=MyNodes
|
|
#SM3XYZ=SM3XYZ
|
|
|
|
[PASSWORDS]
|
|
#MyNodes="Change this key now!"
|
|
#SM3XYZ="A strong password"
|
|
|
|
#[TG#9999]
|
|
#AUTO_QSY_AFTER=300
|
|
#ALLOW=S[A-M]\\\\d.*|LA8PV
|
|
#ALLOW_MONITOR=S[A-M]3.*
|
|
#SHOW_ACTIVITY=0
|
|
|
|
# Trunk links to peer SvxReflector instances (prefix-based TG routing).
|
|
#
|
|
# Each reflector owns all TGs whose decimal representation starts with
|
|
# LOCAL_PREFIX. For example, LOCAL_PREFIX=1 means this reflector is
|
|
# authoritative for TGs 1, 10, 100, 1000, 12345, etc.
|
|
#
|
|
# Add LOCAL_PREFIX to the [GLOBAL] section, then add one [TRUNK_x] section
|
|
# per peer. REMOTE_PREFIX declares which TG prefix the peer owns.
|
|
#
|
|
# Example for a two-reflector mesh:
|
|
# Reflector A: LOCAL_PREFIX=1, [TRUNK_2] with REMOTE_PREFIX=2
|
|
# Reflector B: LOCAL_PREFIX=2, [TRUNK_1] with REMOTE_PREFIX=1
|
|
#
|
|
#LOCAL_PREFIX=1
|
|
#TRUNK_LISTEN_PORT=5302
|
|
#TRUNK_DEBUG=0 # verbose trunk logging (high log volume — disable after diagnosis)
|
|
|
|
#[TRUNK_2]
|
|
#HOST=reflector-b.example.com
|
|
#PORT=5302
|
|
#SECRET=change_this_shared_secret
|
|
#REMOTE_PREFIX=2
|
|
|
|
# --- Satellite reflectors ---
|
|
# A satellite is a lightweight reflector that connects to a parent
|
|
# reflector instead of joining the trunk mesh. Clients connect to the
|
|
# satellite normally; it relays everything to the parent.
|
|
#
|
|
# Parent side: accept inbound satellite connections
|
|
#[SATELLITE]
|
|
#LISTEN_PORT=5303
|
|
#SECRET=change_this_satellite_secret
|
|
#
|
|
# Satellite side: set these in [GLOBAL] instead of LOCAL_PREFIX/TRUNK_x
|
|
#SATELLITE_OF=reflector-01.example.com
|
|
#SATELLITE_PORT=5303
|
|
#SATELLITE_SECRET=change_this_satellite_secret
|
|
#SATELLITE_ID=my-satellite
|
|
|