mirror of
https://github.com/ShaYmez/hblink3.git
synced 2024-11-22 07:54:50 -05:00
add configuration to enable unit routing
This commit is contained in:
parent
281860db0b
commit
836c655739
@ -869,6 +869,7 @@ class routerHBP(HBSYSTEM):
|
|||||||
if _call_type == 'group':
|
if _call_type == 'group':
|
||||||
self.group_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _frame_type, _dtype_vseq, _stream_id, _data)
|
self.group_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _frame_type, _dtype_vseq, _stream_id, _data)
|
||||||
elif _call_type == 'unit':
|
elif _call_type == 'unit':
|
||||||
|
if UNIT:
|
||||||
self.unit_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _frame_type, _dtype_vseq, _stream_id, _data)
|
self.unit_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _frame_type, _dtype_vseq, _stream_id, _data)
|
||||||
elif _call_type == 'vscsbk':
|
elif _call_type == 'vscsbk':
|
||||||
logger.debug('CSBK recieved, but HBlink does not process them currently')
|
logger.debug('CSBK recieved, but HBlink does not process them currently')
|
||||||
@ -955,6 +956,9 @@ if __name__ == '__main__':
|
|||||||
# Build the routing rules file
|
# Build the routing rules file
|
||||||
BRIDGES = make_bridges(rules_module.BRIDGES)
|
BRIDGES = make_bridges(rules_module.BRIDGES)
|
||||||
|
|
||||||
|
# Get rule parameter for private calls
|
||||||
|
UNIT = rules_module.BRIDGES
|
||||||
|
|
||||||
# INITIALIZE THE REPORTING LOOP
|
# INITIALIZE THE REPORTING LOOP
|
||||||
if CONFIG['REPORTS']['REPORT']:
|
if CONFIG['REPORTS']['REPORT']:
|
||||||
report_server = config_reports(CONFIG, bridgeReportFactory)
|
report_server = config_reports(CONFIG, bridgeReportFactory)
|
||||||
|
Loading…
Reference in New Issue
Block a user