Configs and tabs

pull/2/head
Rodrigo Pérez 2 years ago
parent eed7b8df5f
commit 66bd5f8420
No known key found for this signature in database
GPG Key ID: CF3FCD2E39162965

@ -149,7 +149,7 @@ def config_API(_config, _bridges):
application = Application([FD_API], application = Application([FD_API],
tns='freedmr.api', tns='adn.api',
in_protocol=HttpRpc(validator='soft'), in_protocol=HttpRpc(validator='soft'),
out_protocol=JsonDocument() out_protocol=JsonDocument()
) )
@ -2904,7 +2904,7 @@ if __name__ == '__main__':
words[lang][_mapword] = words[lang][_map[_mapword]] words[lang][_mapword] = words[lang][_map[_mapword]]
# HBlink instance creation # HBlink instance creation
logger.info('(GLOBAL) FreeDMR \'bridge_master.py\' -- SYSTEM STARTING...') logger.info('(GLOBAL) ADN \'bridge_master.py\' -- SYSTEM STARTING...')
listeningPorts = {} listeningPorts = {}

@ -169,7 +169,7 @@ def build_config(_config_file):
'LOG_FILE': config.get(section, 'LOG_FILE', fallback='/dev/null'), 'LOG_FILE': config.get(section, 'LOG_FILE', fallback='/dev/null'),
'LOG_HANDLERS': config.get(section, 'LOG_HANDLERS', fallback='console-timed'), 'LOG_HANDLERS': config.get(section, 'LOG_HANDLERS', fallback='console-timed'),
'LOG_LEVEL': config.get(section, 'LOG_LEVEL', fallback='INFO'), 'LOG_LEVEL': config.get(section, 'LOG_LEVEL', fallback='INFO'),
'LOG_NAME': config.get(section, 'LOG_NAME', fallback='FreeDMR') 'LOG_NAME': config.get(section, 'LOG_NAME', fallback='ADN')
}) })
@ -406,7 +406,7 @@ if __name__ == '__main__':
# CLI argument parser - handles picking up the config file from the command line, and sending a "help" message # CLI argument parser - handles picking up the config file from the command line, and sending a "help" message
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', action='store', dest='CONFIG_FILE', help='/full/path/to/config.file (usually freedmr.cfg)') parser.add_argument('-c', '--config', action='store', dest='CONFIG_FILE', help='/full/path/to/config.file (usually adn.cfg)')
cli_args = parser.parse_args() cli_args = parser.parse_args()

@ -329,7 +329,7 @@ class Proxy(DatagramProtocol):
if data[8:].upper().startswith(b"PASS="): if data[8:].upper().startswith(b"PASS="):
_psswd = data[13:] _psswd = data[13:]
if len(_psswd) >= 6: if len(_psswd) >= 6:
dk = pbkdf2_hmac("sha256", _psswd, b"FreeDMR", 2000).hex() dk = pbkdf2_hmac("sha256", _psswd, b"ADN", 2000).hex()
self.db_proxy.updt_tbl("psswd", _peer_id, psswd=dk) self.db_proxy.updt_tbl("psswd", _peer_id, psswd=dk)
self.transport.write(b"".join([RPTACK, _peer_id]), addr) self.transport.write(b"".join([RPTACK, _peer_id]), addr)
print(f"Password stored for: {int_id(_peer_id)}") print(f"Password stored for: {int_id(_peer_id)}")
@ -454,7 +454,7 @@ if __name__ == "__main__":
"--config", "--config",
action="store", action="store",
dest="CONFIG_FILE", dest="CONFIG_FILE",
help="/full/path/to/config.file (usually freedmr.cfg)", help="/full/path/to/config.file (usually adn.cfg)",
) )
cli_args = parser.parse_args() cli_args = parser.parse_args()

@ -301,7 +301,7 @@ if __name__ == '__main__':
# CLI argument parser - handles picking up the config file from the command line, and sending a "help" message # CLI argument parser - handles picking up the config file from the command line, and sending a "help" message
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', action='store', dest='CONFIG_FILE', help='/full/path/to/config.file (usually freedmr.cfg)') parser.add_argument('-c', '--config', action='store', dest='CONFIG_FILE', help='/full/path/to/config.file (usually adn.cfg)')
cli_args = parser.parse_args() cli_args = parser.parse_args()

@ -115,7 +115,7 @@ voiceMap = {
'en_US': { 'en_US': {
'to': '2', 'to': '2',
'freedmr': 'silence', 'adn': 'silence',
'this-is': 'silence', 'this-is': 'silence',
'allstar-link-mode': 'alpha' 'allstar-link-mode': 'alpha'
}, },
@ -269,7 +269,7 @@ voiceMap = {
'dk_DK': { 'dk_DK': {
'to': 'silence', 'to': 'silence',
'freedmr': 'silence', 'adn': 'silence',
'this-is': 'silence', 'this-is': 'silence',
'allstar-link-mode': 'A' 'allstar-link-mode': 'A'
@ -277,35 +277,35 @@ voiceMap = {
'it_IT': { 'it_IT': {
'to': 'silence', 'to': 'silence',
'freedmr': 'silence', 'adn': 'silence',
'this-is': 'silence', 'this-is': 'silence',
'allstar-link-mode': 'A' 'allstar-link-mode': 'A'
}, },
'no_NO': { 'no_NO': {
'to': 'silence', 'to': 'silence',
'freedmr': 'silence', 'adn': 'silence',
'this-is': 'silence', 'this-is': 'silence',
'allstar-link-mode': 'A' 'allstar-link-mode': 'A'
}, },
'pl_PL': { 'pl_PL': {
'to': 'silence', 'to': 'silence',
'freedmr': 'silence', 'adn': 'silence',
'this-is': 'silence', 'this-is': 'silence',
'allstar-link-mode': 'A' 'allstar-link-mode': 'A'
}, },
'se_SE': { 'se_SE': {
'to': 'silence', 'to': 'silence',
'freedmr': 'silence', 'adn': 'silence',
'this-is': 'silence', 'this-is': 'silence',
'allstar-link-mode': 'A' 'allstar-link-mode': 'A'
}, },
'CW': { 'CW': {
'to': 'silence', 'to': 'silence',
'freedmr': 'silence', 'adn': 'silence',
'this-is': 'silence', 'this-is': 'silence',
'linkedto': 'silence', 'linkedto': 'silence',
'allstar-link-mode': 'T' 'allstar-link-mode': 'T'

@ -270,7 +270,7 @@ if __name__ == '__main__':
report_server = config_reports(CONFIG, reportFactory) report_server = config_reports(CONFIG, reportFactory)
# HBlink instance creation # HBlink instance creation
logger.info('FreeDMR \'playback_file.py\' (c) 2022 Simon Adlem based on work from 2017-2019 Cort Buffington, N0MJS & Mike Zingman, N4IRR -- SYSTEM STARTING...') logger.info('ADN \'playback_file.py\' (c) 2022 Simon Adlem based on work from 2017-2019 Cort Buffington, N0MJS & Mike Zingman, N4IRR -- SYSTEM STARTING...')
for system in CONFIG['SYSTEMS']: for system in CONFIG['SYSTEMS']:
if CONFIG['SYSTEMS'][system]['ENABLED']: if CONFIG['SYSTEMS'][system]['ENABLED']:
if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE': if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE':

@ -16,7 +16,7 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
############################################################################### ###############################################################################
#This is example code to connect to the report service in FreeDMR / HBLink3 #This is example code to connect to the report service in ADN / HBLink3
#It can be used as a skeleton to build logging and monitoring tools. #It can be used as a skeleton to build logging and monitoring tools.
import pickle import pickle

@ -24,7 +24,7 @@ __license__ = 'GNU GPLv3'
__maintainer__ = 'Simon Adlem G7RZU' __maintainer__ = 'Simon Adlem G7RZU'
__email__ = 'simon@gb7fr.org.uk' __email__ = 'simon@gb7fr.org.uk'
#This is example code to connect to the report service in FreeDMR / HBLink3 #This is example code to connect to the report service in ADN / HBLink3
#It can be used as a skeleton to build logging and monitoring tools. #It can be used as a skeleton to build logging and monitoring tools.
import pickle import pickle

@ -1,7 +1,7 @@
''' '''
THIS EXAMPLE WILL NOT WORK AS IT IS - YOU MUST SPECIFY YOUR OWN VALUES!!! THIS EXAMPLE WILL NOT WORK AS IT IS - YOU MUST SPECIFY YOUR OWN VALUES!!!
In FreeDMR, the rules file should be *empty* unless you have static routing required. Please see the In ADN, the rules file should be *empty* unless you have static routing required. Please see the
documentation for more details. documentation for more details.
This file is organized around the "Conference Bridges" that you wish to use. If you're a c-Bridge This file is organized around the "Conference Bridges" that you wish to use. If you're a c-Bridge

@ -0,0 +1,11 @@
[Unit]
Description= ADN DMR Repeaters Service
After=syslog.target network.target
[Service]
User=root
WorkingDirectory=/opt/adn
ExecStart=/usr/bin/python3 bridge_master.py -c ./config/adn.cfg -r ./config/rules.py
[Install]
WantedBy=multi-user.target

@ -1,25 +0,0 @@
[Unit]
Description= FreeDMR Repeaters Service
After=syslog.target network.target
[Service]
User=root
WorkingDirectory=/opt/FreeDMR
ExecStart=/usr/bin/python3 bridge_master.py -c ./config/hblink.cfg -r ./config/rules.py
[Install]
WantedBy=multi-user.target

@ -20,7 +20,7 @@
#Some utilty functions from dmr_utils3 have been modified. These live here. #Some utilty functions from dmr_utils3 have been modified. These live here.
# Also new FreeDMR specific functions. # Also new ADN specific functions.
import ssl import ssl
from time import time from time import time

Loading…
Cancel
Save

Powered by TurnKey Linux.