HBLink/hb_routing_rules-SAMPLE.py

28 lines
1.4 KiB
Python
Raw Normal View History

2016-07-31 10:41:28 -04:00
RULES = {
2016-08-25 21:44:15 -04:00
'MASTER-1': {
'GROUP_HANGTIME': 5,
'GROUP_VOICE': [
2016-08-26 22:31:20 -04:00
{'NAME': 'STATEWIDE', 'DST_NET': 'REPEATER-1', 'SRC_TS': 2, 'SRC_GROUP': 3120, 'DST_TS': 2, 'DST_GROUP': 3120, 'ACTIVE': True, 'TO_TYPE': 'ON', 'TIMEOUT': 2, 'ON': [8,], 'OFF': [9,10]},
2016-08-25 21:44:15 -04:00
# When DMRD received on this MASTER, Time Slot 1, Talk Group 1; send to CLIENT-1 on Time Slot 2 Talk Group 2
# This rule is NOT enabled by default
# This rule can be enabled by transmitting on TGID 8
# This rule can be disabled by transmitting on TGID 9 or 10
# Repeat the above line for as many rules for this IPSC network as you want.
]
2016-07-31 10:41:28 -04:00
},
2016-08-25 21:44:15 -04:00
'REPEATER-1': {
'GROUP_HANGTIME': 5,
'GROUP_VOICE': [
2016-08-26 22:31:20 -04:00
{'NAME': 'STATEWIDE', 'DST_NET': 'MASTER-1', 'SRC_TS': 2, 'SRC_GROUP': 3120, 'DST_TS': 2, 'DST_GROUP': 3120, 'ACTIVE': True, 'TO_TYPE': 'ON', 'TIMEOUT': 2, 'ON': [8,], 'OFF': [9,10]},
2016-08-25 21:44:15 -04:00
# When DMRD received on this CLIENT, Time Slot 1, Talk Group 1; send to MASTER-1 on Time Slot 2 Talk Group 2
# This rule is NOT enabled by default
# This rule can be enabled by transmitting on TGID 8
# This rule can be disabled by transmitting on TGID 9 or 10
# Repeat the above line for as many rules for this IPSC network as you want.
]
2016-07-31 10:41:28 -04:00
},
2016-08-25 21:44:15 -04:00
}
if __name__ == '__main__':
from pprint import pprint
pprint(RULES)