2016-12-21 20:55:53 -05:00
|
|
|
'''
|
|
|
|
THIS EXAMPLE WILL NOT WORK AS IT IS - YOU MUST SPECIFY YOUR OWN VALUES!!!
|
|
|
|
|
|
|
|
This file is organized around the "Conference Bridges" that you wish to use. If you're a c-Bridge
|
|
|
|
person, think of these as "bridge groups". You might also liken them to a "reflector". If a particular
|
2017-03-29 09:08:54 -04:00
|
|
|
system is "ACTIVE" on a particular conference bridge, any traffic from that system will be sent
|
2016-12-21 20:55:53 -05:00
|
|
|
to any other system that is active on the bridge as well. This is not an "end to end" method, because
|
|
|
|
each system must independently be activated on the bridge.
|
|
|
|
|
|
|
|
The first level (e.g. "WORLDWIDE" or "STATEWIDE" in the examples) is the name of the conference
|
|
|
|
bridge. This is any arbitrary ASCII text string you want to use. Under each conference bridge
|
2017-03-30 14:33:57 -04:00
|
|
|
definition are the following items -- one line for each System as defined in the main DMRlink
|
2016-12-21 20:55:53 -05:00
|
|
|
configuration file.
|
|
|
|
|
|
|
|
* SYSTEM - The name of the sytem as listed in the main dmrlink configuration file (e.g.dmrlink.cfg)
|
2017-03-30 14:33:57 -04:00
|
|
|
This MUST be the exact same name and case as in the main config file!!!
|
2016-12-21 20:55:53 -05:00
|
|
|
* TS - Timeslot used for matching traffic to this confernce bridge
|
|
|
|
* TGID - Talkgroup ID used for matching traffic to this conference bridge
|
|
|
|
* ON and OFF are LISTS of Talkgroup IDs used to trigger this system off and on. Even if you
|
|
|
|
only want one (as shown in the ON example), it has to be in list format. None can be
|
|
|
|
handled with an empty list, such as " 'ON': [] ".
|
|
|
|
* TO_TYPE is timeout type. If you want to use timers, ON means when it's turned on, it will
|
|
|
|
turn off afer the timout period and OFF means it will turn back on after the timout
|
|
|
|
period. If you don't want to use timers, set it to anything else, but 'NONE' might be
|
|
|
|
a good value for documentation!
|
2017-03-30 14:33:57 -04:00
|
|
|
* TIMOUT is a value in minutes for the timout timer. It MUST have a value. No,
|
|
|
|
I won't make it 'seconds', so don't ask. Timers are performance "expense".
|
2016-12-21 20:55:53 -05:00
|
|
|
|
|
|
|
'''
|
|
|
|
|
2017-03-20 10:27:42 -04:00
|
|
|
# CONFIGURATION ITEMS SPECIFICALLY FOR confbridge.py
|
|
|
|
#
|
|
|
|
# REPORT:
|
|
|
|
# True or False. True if you want to write a pickle file of the current rule file
|
|
|
|
# state. This is useful (and necessary) for reporting features to be active.
|
|
|
|
# The path follows the reporting path in the main dmrlink.cfg file.
|
|
|
|
BRIDGE_CONF = {
|
|
|
|
'REPORT': True,
|
|
|
|
}
|
|
|
|
|
2016-12-21 20:55:53 -05:00
|
|
|
BRIDGES = {
|
|
|
|
'WORLDWIDE': [
|
|
|
|
{'SYSTEM': 'MASTER-1', 'TS': 1, 'TGID': 1, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'ON', 'ON': [2,], 'OFF': [9,10]},
|
|
|
|
{'SYSTEM': 'CLIENT-1', 'TS': 1, 'TGID': 3100, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'ON', 'ON': [2,], 'OFF': [9,10]},
|
|
|
|
],
|
|
|
|
'ENGLISH': [
|
|
|
|
{'SYSTEM': 'MASTER-1', 'TS': 1, 'TGID': 13, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [3,], 'OFF': [8,10]},
|
|
|
|
{'SYSTEM': 'CLIENT-2', 'TS': 1, 'TGID': 13, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [3,], 'OFF': [8,10]},
|
|
|
|
],
|
|
|
|
'STATEWIDE': [
|
|
|
|
{'SYSTEM': 'MASTER-1', 'TS': 2, 'TGID': 3129, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [4,], 'OFF': [7,10]},
|
|
|
|
{'SYSTEM': 'CLIENT-2', 'TS': 2, 'TGID': 3129, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [4,], 'OFF': [7,10]},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
from pprint import pprint
|
2017-01-05 15:01:32 -05:00
|
|
|
pprint(BRIDGES)
|