2013-12-15 11:05:34 -05:00
|
|
|
# DMRLink SAMPLE CONFIGURATION FILE
|
|
|
|
#
|
2013-10-12 12:21:00 -04:00
|
|
|
# Rename to dmrlink.cfg and add your information
|
2015-06-12 09:28:48 -04:00
|
|
|
#
|
2015-12-03 09:32:18 -05:00
|
|
|
# minor tweaks to match install for use by DMRGateway
|
|
|
|
# N4IRS
|
2015-06-12 09:28:48 -04:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
# GLOBAL CONFIGURATION ITEMS
|
2013-12-15 11:05:34 -05:00
|
|
|
#
|
|
|
|
[GLOBAL]
|
2015-12-04 21:40:23 -05:00
|
|
|
PATH: /opt/dmrlink/
|
2013-12-15 11:05:34 -05:00
|
|
|
|
|
|
|
|
2015-06-07 16:46:29 -04:00
|
|
|
# NETWORK REPORTING CONFIGURATION
|
|
|
|
# Enabling "REPORT_NETWORKS" will cause a reporting action for
|
|
|
|
# IPSC each time the periodic reporting loop runs, that period is
|
|
|
|
# specifiec by "REPORT_INTERVAL" in seconds. Possible values
|
|
|
|
# for "REPORT_NETWORKS" are:
|
|
|
|
# PICKLE - a Python pickle file of the network's data structure
|
2015-06-20 20:57:07 -04:00
|
|
|
# (JSON DOES NOT WORK RNIGHT NOW) JSON - a JSON file of the network's data structure
|
|
|
|
# (REDIS DOES NOT WORK RIGHT NOW) REDIS - send JSON format data structure to a local|remote
|
2015-06-07 21:54:21 -04:00
|
|
|
# redis server
|
|
|
|
# PRINT - a pretty print (STDOUT) of the data structure
|
2015-06-07 16:46:29 -04:00
|
|
|
# "PRINT_PEERS_INC_MODE" - Boolean to include mode bits
|
|
|
|
# "PRINT_PEERS_INC_FLAGS" - Boolean to include flag bits
|
2013-12-15 11:05:34 -05:00
|
|
|
#
|
2015-06-07 21:54:21 -04:00
|
|
|
# PRINT is the odd man out because it sends prettily formatted stuff
|
|
|
|
# to STDOUT. The others send the internal data structure of the IPSC
|
|
|
|
# instance and let some program on the other end sort it out.
|
|
|
|
#
|
2015-06-12 09:28:48 -04:00
|
|
|
# REPORT_INTERVAL - Seconds between reports
|
|
|
|
# REPORT_PATH - Absolute path save data (pickle and json)
|
|
|
|
#
|
2013-12-15 11:05:34 -05:00
|
|
|
[REPORTS]
|
2015-06-07 16:46:29 -04:00
|
|
|
REPORT_NETWORKS:
|
2014-08-15 09:39:51 -04:00
|
|
|
REPORT_INTERVAL: 60
|
2015-06-12 09:28:48 -04:00
|
|
|
REPORT_PATH:
|
2015-06-07 16:46:29 -04:00
|
|
|
PRINT_PEERS_INC_MODE: 0
|
|
|
|
PRINT_PEERS_INC_FLAGS: 0
|
2013-12-15 11:05:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
# SYSTEM LOGGER CONFIGURAITON
|
|
|
|
# This allows the logger to be configured without chaning the individual
|
|
|
|
# python logger stuff in dmrlink.py. LOG_FILE should be a complete
|
|
|
|
# path/filename for *your* system. LOG_HANDERLS may be any of the
|
|
|
|
# following, please, no spaces in the list if you use several:
|
|
|
|
# console
|
|
|
|
# console-timed
|
|
|
|
# file
|
|
|
|
# file-timed
|
|
|
|
# syslog
|
|
|
|
# LOG_LEVEL may be any of the standard syslog logging levels, though
|
|
|
|
# as of now, DEBUG, INFO, WARNING and CRITICAL are the only ones
|
|
|
|
# used.
|
|
|
|
#
|
|
|
|
[LOGGER]
|
2015-12-03 09:32:18 -05:00
|
|
|
LOG_FILE: /var/log/dmrlink/dmrlink.log
|
|
|
|
LOG_HANDLERS: file
|
2015-12-06 22:16:39 -05:00
|
|
|
LOG_LEVEL: INFO
|
2014-09-05 08:50:49 -04:00
|
|
|
LOG_NAME: DMRlink
|
2013-12-15 11:05:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
# CONFIGURATION FOR IPSC NETWORKS
|
2014-01-02 12:16:23 -05:00
|
|
|
# Please read these closely - catastrophic results could result by setting
|
|
|
|
# certain flags for things DMRlink cannot do.
|
2013-10-12 12:21:00 -04:00
|
|
|
#
|
2013-12-15 11:05:34 -05:00
|
|
|
# [NAME] The name you want to use to identify the IPSC instance (use
|
|
|
|
# something better than "IPSC1"...)
|
2013-10-12 12:21:00 -04:00
|
|
|
# ENABLED: Should we communiate with this network? Handy if you need to
|
2015-12-06 22:16:39 -05:00
|
|
|
# shut one down but don't want to lose the config
|
2013-10-12 12:21:00 -04:00
|
|
|
# RADIO_ID: This is the radio ID that DMRLink should use to communicate
|
2014-10-31 11:30:18 -04:00
|
|
|
# IP: This is the local IPv4 address to listen on. It may be left
|
2016-02-01 11:46:23 -05:00
|
|
|
# blank if you do not need or wish to specify. It is mostly
|
|
|
|
# useful when DMRlink uses multiple interfaces to serve as an
|
|
|
|
# application gatway/proxy from private and/or VPN networks
|
|
|
|
# to the real world.
|
2013-10-12 12:21:00 -04:00
|
|
|
# PORT: This is the UDP source port for DMRLink to use for this
|
|
|
|
# IPSC network, must be unique!!!
|
2014-01-02 12:16:23 -05:00
|
|
|
# ALIVE_TIMER: Seconds between keep-alive transmissions
|
|
|
|
# MAX_MISSED: How many missed keep-alives before we remove a peer
|
|
|
|
# PEER_OPER: This signals the master and peers whether or not we are
|
|
|
|
# operational. True is the only thing that makes sense.
|
|
|
|
# IPSC_MODE: May be 'DIGITAL', 'ANALOG', or 'NONE'. Digital is really the
|
|
|
|
# only thing that makes sense.
|
|
|
|
# TSx_LINK: Is this time slot linked?
|
|
|
|
# CSBK_CALL: Should be False, we cannot process these, but may be useful
|
|
|
|
# for debugging.
|
|
|
|
# RCM: Repeater Call Monitoring - don't unable unless you plan to
|
|
|
|
# actually use it, this craetes extra network traffic.
|
|
|
|
# CON_APP: Third Party Console App - exactly what DMRlink is, should
|
|
|
|
# be set to True.
|
|
|
|
# XNL_CALL: Can cause problems if not set to False, DMRlink does not
|
|
|
|
# process XCMP/XNL calls.
|
|
|
|
# XNL_MASTER: Obviously, should also be False, see XNL_CALL.
|
|
|
|
# DATA_CALL: Process data calls. True if you want to process data calls
|
|
|
|
# VOICE_CALL: Process voice calls. True if you want to process voice calls
|
2014-09-18 19:54:26 -04:00
|
|
|
# MASTER_PEER: True if DMRlink will be the master, False if we're a peer
|
2013-10-12 12:21:00 -04:00
|
|
|
# AUTH_ENABLED: Do we use authenticated IPSC?
|
|
|
|
# AUTH_KEY: The Authentication key (up to 40 hex characters)
|
2014-05-15 18:17:54 -04:00
|
|
|
# MASTER_IP: IP address of the IPSC master (ignored if DMRlink is the master)
|
|
|
|
# MASTER_PORT: UDP port of the IPSC master (ignored if DMRlinkn is the master)
|
2013-10-12 12:21:00 -04:00
|
|
|
#
|
|
|
|
# ...Repeat the block for each IPSC network to join.
|
2013-12-15 11:05:34 -05:00
|
|
|
#
|
2013-10-12 12:08:06 -04:00
|
|
|
|
2015-12-06 22:16:39 -05:00
|
|
|
[SAMPLE_PEER]
|
2013-10-12 12:08:06 -04:00
|
|
|
ENABLED: True
|
2014-01-02 12:16:23 -05:00
|
|
|
RADIO_ID: 12345
|
2015-12-06 22:16:39 -05:00
|
|
|
IP: 127.0.0.1
|
2014-01-02 12:16:23 -05:00
|
|
|
PORT: 50000
|
2013-10-12 12:08:06 -04:00
|
|
|
ALIVE_TIMER: 5
|
2014-01-02 12:16:23 -05:00
|
|
|
MAX_MISSED: 20
|
2014-10-31 11:30:18 -04:00
|
|
|
PEER_OPER: True
|
|
|
|
IPSC_MODE: DIGITAL
|
2013-10-12 12:08:06 -04:00
|
|
|
TS1_LINK: True
|
|
|
|
TS2_LINK: True
|
2014-10-31 11:30:18 -04:00
|
|
|
CSBK_CALL: False
|
|
|
|
RCM: True
|
|
|
|
CON_APP: True
|
|
|
|
XNL_CALL: False
|
|
|
|
XNL_MASTER: False
|
|
|
|
DATA_CALL: True
|
|
|
|
VOICE_CALL: True
|
|
|
|
MASTER_PEER: False
|
|
|
|
AUTH_ENABLED: True
|
2014-01-02 12:16:23 -05:00
|
|
|
AUTH_KEY: 1A2B3C
|
|
|
|
MASTER_IP: 1.2.3.4
|
|
|
|
MASTER_PORT: 50000
|
2015-12-06 22:16:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
[SAMPLE_MASTER]
|
|
|
|
ENABLED: False
|
|
|
|
RADIO_ID: 54321
|
|
|
|
IP: 192.168.1.1
|
|
|
|
PORT: 50000
|
|
|
|
ALIVE_TIMER: 5
|
|
|
|
MAX_MISSED: 20
|
|
|
|
PEER_OPER: True
|
|
|
|
IPSC_MODE: DIGITAL
|
|
|
|
TS1_LINK: True
|
|
|
|
TS2_LINK: True
|
|
|
|
CSBK_CALL: False
|
|
|
|
RCM: True
|
|
|
|
CON_APP: True
|
|
|
|
XNL_CALL: False
|
|
|
|
XNL_MASTER: False
|
|
|
|
DATA_CALL: True
|
|
|
|
VOICE_CALL: True
|
|
|
|
MASTER_PEER: True
|
|
|
|
AUTH_ENABLED: True
|
|
|
|
AUTH_KEY: 1A2B3C
|
|
|
|
# Below not used for a Master
|
|
|
|
# MASTER_IP: 1.2.3.4
|
|
|
|
# MASTER_PORT: 50000
|