2013-08-02 16:31:55 -04:00
|
|
|
# Copyright (c) 2013 Cortney T. Buffington, N0MJS n0mjs@me.com
|
|
|
|
#
|
|
|
|
# This work is licensed under the Creative Commons Attribution-ShareAlike
|
|
|
|
# 3.0 Unported License.To view a copy of this license, visit
|
|
|
|
# http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to
|
|
|
|
# Creative Commons, 444 Castro Street, Suite 900, Mountain View,
|
|
|
|
# California, 94041, USA.
|
|
|
|
|
2013-07-11 20:50:38 -04:00
|
|
|
# Configuration file for IPSC.py -- each network has several parts, some of this is muted by the script once it runs, thus there are placeholders
|
|
|
|
NETWORK = {
|
|
|
|
'IPSC1': {
|
2013-08-08 22:48:28 -04:00
|
|
|
'GROUP_VOICE': [
|
|
|
|
{'SRC_GROUP': b'\x00\x00\x01', 'DST_NET': 'IPSC2', 'DST_GROUP': b'\x00\x00\x02'}
|
|
|
|
],
|
2013-07-11 20:50:38 -04:00
|
|
|
'LOCAL': {
|
2013-09-10 17:24:38 -04:00
|
|
|
'MODE': b'\x6A', # Decoded values below, use this only for now
|
|
|
|
'PEER_OPER': True, # Not yet in use, must be hand-coded in MODE
|
|
|
|
'PEER_MODE': 'DIGITAL', # Not yet in use, must be hand-coded in MODE
|
|
|
|
'TS1_LINK': True, # Not yet in use, must be hand-coded in MODE
|
|
|
|
'TS2_LINK': True, # Not yet in use, must be hand-coded in MODE
|
2013-07-11 20:50:38 -04:00
|
|
|
'FLAGS': b'\x00\x00\x00\x14',
|
|
|
|
'PORT': 50001,
|
|
|
|
'ALIVE_TIMER': 5, # Seconds between keep-alives and registration attempts
|
2013-07-20 09:28:52 -04:00
|
|
|
'MAX_MISSED': 5, # Maximum number of keep-alives missed before de-registration
|
2013-07-11 20:50:38 -04:00
|
|
|
'RADIO_ID': b'\x00\x00\x00\x0A',
|
2013-09-10 16:28:18 -04:00
|
|
|
'AUTH_ENABLED': True,
|
2013-07-20 19:13:15 -04:00
|
|
|
'AUTH_KEY': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01',
|
2013-07-20 09:28:52 -04:00
|
|
|
'ENABLED': True,
|
2013-09-10 17:24:38 -04:00
|
|
|
# MAKE NO CHANGES BELOW HERE!!!
|
|
|
|
'NUM_PEERS': 0,
|
2013-07-20 09:28:52 -04:00
|
|
|
'STATUS': {
|
|
|
|
'ACTIVE': False
|
|
|
|
}
|
2013-07-11 20:50:38 -04:00
|
|
|
},
|
|
|
|
'MASTER': {
|
|
|
|
'IP': '1.2.3.4',
|
|
|
|
'PORT': 50000,
|
2013-09-10 17:24:38 -04:00
|
|
|
# MAKE NO CHANGES BELOW HERE!!!
|
2013-07-20 09:28:52 -04:00
|
|
|
'RADIO_ID': b'\x00\x00\x00\x00',
|
|
|
|
'MODE': b'\x00',
|
2013-07-28 23:25:25 -04:00
|
|
|
'PEER_OPER': False,
|
|
|
|
'PEER_MODE': '',
|
|
|
|
'TS1_LINK': False,
|
|
|
|
'TS2_LINK': False,
|
2013-07-20 09:28:52 -04:00
|
|
|
'FLAGS': b'\x00\x00\x00\x00',
|
2013-07-11 20:50:38 -04:00
|
|
|
'STATUS': {
|
2013-07-20 09:28:52 -04:00
|
|
|
'CONNECTED': False,
|
|
|
|
'PEER-LIST': False,
|
|
|
|
'KEEP_ALIVES_SENT': 0,
|
2013-07-11 20:50:38 -04:00
|
|
|
'KEEP_ALIVES_MISSED': 0,
|
2013-07-20 09:28:52 -04:00
|
|
|
'KEEP_ALIVES_OUTSTANDING': 0
|
2013-07-11 20:50:38 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
'PEERS': []
|
|
|
|
# each list item contains {
|
|
|
|
# 'IP': '100.200.1.1',
|
|
|
|
# 'PORT': 50000,
|
2013-07-20 09:28:52 -04:00
|
|
|
# 'RADIO_ID': b'\x00\x00\x00\x00',
|
|
|
|
# 'MODE': b'\x00,
|
2013-07-29 14:23:37 -04:00
|
|
|
# 'PEER_OPER': False,
|
|
|
|
# 'PEER_MODE': '',
|
|
|
|
# 'TS1_LINK': False,
|
|
|
|
# 'TS2_LINK': False,
|
2013-07-20 09:28:52 -04:00
|
|
|
# 'FLAGS': b'\x00\x00\x00\x00',
|
2013-07-11 20:50:38 -04:00
|
|
|
# 'STATUS': {
|
2013-07-20 09:28:52 -04:00
|
|
|
# 'CONNECTED': False,
|
|
|
|
# 'KEEP_ALIVES_SENT': 0,
|
|
|
|
# 'KEEP_ALIVES_MISSED': 0,
|
|
|
|
# 'KEEP_ALIVES_OUTSTANDING': 0
|
2013-07-11 20:50:38 -04:00
|
|
|
# }
|
|
|
|
# }
|
|
|
|
}
|
2013-07-20 09:28:52 -04:00
|
|
|
}
|