2013-11-17 19:13:59 -05:00
|
|
|
'''
|
|
|
|
The following is an example for your bridge_rules file. Note, all bridging is ONE-WAY!
|
|
|
|
Rules for an IPSC network indicate destination IPSC network for the Group ID specified
|
2014-08-31 12:27:00 -04:00
|
|
|
(allowing transcoding of the Group ID to a different value). Group IDs used to be
|
|
|
|
hex strings, then a function was added to convert them, now that function has been
|
|
|
|
moved into the bridge.py (program file) to make this file as simple and easy as
|
|
|
|
possible
|
2013-11-17 19:13:59 -05:00
|
|
|
|
2014-08-31 12:27:00 -04:00
|
|
|
The IPSC name must match an IPSC name from dmrlink.cfg, and any IPSC network defined
|
|
|
|
as "active" in the dmrlink.cfg *MUST* have an entry here. It may be an empty entry,
|
|
|
|
but there must be one so that the data structure can be parsed.
|
2013-11-17 19:13:59 -05:00
|
|
|
|
2014-09-18 21:08:54 -04:00
|
|
|
The example below cross-patches TS 1/TGID 1 on an IPSC network named "IPSC_FOO" with
|
|
|
|
TS 2/TGID 2 on an IPSC network named "IPSC_BAR". Note, one entry must be made on EACH
|
|
|
|
IPSC network (IPSC_FOO and IPSC_BAR in this example) for bridging to occur in both
|
|
|
|
directions.
|
2013-11-17 19:13:59 -05:00
|
|
|
|
|
|
|
THIS EXAMPLE WILL NOT WORK AS IT IS - YOU MUST SPECIFY NAMES AND GROUP IDS!!!
|
2013-12-15 14:17:14 -05:00
|
|
|
|
2014-08-31 12:27:00 -04:00
|
|
|
NOTES:
|
2015-05-15 00:00:47 -04:00
|
|
|
* PRIVATE_VOICE is not yet implemented
|
|
|
|
* GROUP_HANGTIME should be set to the same value as the repeaters in the IPSC network
|
2015-06-07 22:06:30 -04:00
|
|
|
* TRUNK is a boolean set to True only for DMRlink to DMRlink IPSCs that need to move
|
|
|
|
multiple packet streams that may match the same TS - this essentially makes the
|
|
|
|
source,timeslot,talkgroup ID a tuple to indentify an arbitrary number of streams
|
2013-11-17 19:13:59 -05:00
|
|
|
'''
|
|
|
|
|
|
|
|
RULES = {
|
|
|
|
'IPSC_FOO': {
|
2015-06-07 22:06:30 -04:00
|
|
|
'TRUNK': False,
|
2015-05-15 00:00:47 -04:00
|
|
|
'GROUP_HANGTIME': 5,
|
2013-11-17 19:13:59 -05:00
|
|
|
'GROUP_VOICE': [
|
2015-12-23 11:40:46 -05:00
|
|
|
{'SRC_TS': 1, 'SRC_GROUP': 1, 'DST_NET': 'IPSC_BAR', 'DST_TS': 2, 'DST_GROUP': 2},
|
|
|
|
# Send the IPSC_FOO network Time Slice 1, Talk Group 1 to the IPSC_BAR network on Time Slice 2 Talk Group 2
|
2013-11-17 19:13:59 -05:00
|
|
|
# Repeat the above line for as many rules for this IPSC network as you want.
|
2015-12-23 11:40:46 -05:00
|
|
|
|
2013-11-17 19:13:59 -05:00
|
|
|
],
|
|
|
|
'PRIVATE_VOICE': [
|
|
|
|
]
|
|
|
|
},
|
2014-08-31 12:27:00 -04:00
|
|
|
'IPSC_BAR': {
|
2015-06-07 22:06:30 -04:00
|
|
|
'TRUNK': False,
|
2015-05-15 00:00:47 -04:00
|
|
|
'GROUP_HANGTIME': 5,
|
2013-11-17 19:13:59 -05:00
|
|
|
'GROUP_VOICE': [
|
2015-12-23 11:40:46 -05:00
|
|
|
{'SRC_TS': 2, 'SRC_GROUP': 2, 'DST_NET': 'IPSC_FOO', 'DST_TS': 1, 'DST_GROUP': 1},
|
|
|
|
# Send the IPSC_BAR network Time Slice 2, Talk Group 2 to the IPSC_FOO network on Time Slice 1 Talk Group 1
|
2013-11-17 19:13:59 -05:00
|
|
|
# Repeat the above line for as many rules for this IPSC network as you want.
|
|
|
|
],
|
|
|
|
'PRIVATE_VOICE': [
|
|
|
|
]
|
|
|
|
}
|
2014-08-31 12:27:00 -04:00
|
|
|
}
|