From 82b02ec8ec5a30c6cc06144d2a623b48d5265953 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 22 Jul 2021 01:41:30 +0100 Subject: [PATCH] fix streamid --- bridge_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index 10d6d63..a4be826 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -418,7 +418,7 @@ def stream_trimmer_loop(): if '_bcsq' not in systems[system].STATUS[stream_id]: logger.info('(%s) *TIME OUT* STREAM ID: %s SUB: %s PEER: %s TGID: %s TS 1 Duration: %.2f', \ system, int_id(stream_id), get_alias(int_id(_stream['RFS']), subscriber_ids), get_alias(int_id(_stream['RX_PEER']), peer_ids), get_alias(int_id(_stream['TGID']), talkgroup_ids), _stream['LAST'] - _stream['START']) - elif '_bcsq' in _sysconfig and _tgid in _sysconfig['_bcsq'] and _sysconfig['_bcsq'][_tgid] == stream_id: + elif '_bcsq' in _sysconfig and _tgid in _sysconfig['_bcsq'] and _sysconfig['_bcsq'][_stream['TGID']] == stream_id: logger.info('(%s) *TIME OUT* STREAM ID: %s SUB: %s PEER: %s TGID: %s TS 1 (RX BCSQ)', \ system, int_id(stream_id), get_alias(int_id(_stream['RFS']), subscriber_ids), get_alias(int_id(_stream['RX_PEER']), peer_ids), get_alias(int_id(_stream['TGID']), talkgroup_ids)) else: