From 7d03e65d1d47747368ab50d83a0222e0e62b73cd Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 13 Feb 2022 15:33:40 +0000 Subject: [PATCH] get streamid earlier --- hblink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 2f13631..4615a64 100755 --- a/hblink.py +++ b/hblink.py @@ -233,6 +233,7 @@ class OPENBRIDGE(DatagramProtocol): if _packet[:3] == DMR: # DMRData -- encapsulated DMR data frame if _packet[:4] == DMRD: + _stream_id = _data[16:20] if self._config['VER'] > 1: if _stream_id not in self._laststrid: logger.warning('(%s) *ProtoControl* Version 1 protocol prohibited by PROTO_VER, Ver: %s',self._system,self._config['VER']) @@ -262,7 +263,6 @@ class OPENBRIDGE(DatagramProtocol): _call_type = 'group' _frame_type = (_bits & 0x30) >> 4 _dtype_vseq = (_bits & 0xF) # data, 1=voice header, 2=voice terminator; voice, 0=burst A ... 5=burst F - _stream_id = _data[16:20] #logger.debug('(%s) DMRD - Seqence: %s, RF Source: %s, Destination ID: %s', self._system, int_id(_seq), int_id(_rf_src), int_id(_dst_id))