From 06c7b6acc6e29eb2e545a83f2e694046d23a4d2b Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 6 Oct 2021 11:27:23 +0100 Subject: [PATCH] Reject null streamid from HBP --- hblink.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hblink.py b/hblink.py index f57a3bc..d9ead1b 100755 --- a/hblink.py +++ b/hblink.py @@ -466,6 +466,8 @@ class HBSYSTEM(DatagramProtocol): _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] + if not bool(_stream_id): + logger.warning('(%s) CALL DROPPED AS STREAM ID IS NULL FROM SUBSCRIBER %s', self._system, int_id(_rf_src)) #logger.debug('(%s) DMRD - Seqence: %s, RF Source: %s, Destination ID: %s', self._system, _seq, int_id(_rf_src), int_id(_dst_id)) # ACL Processing if self._CONFIG['GLOBAL']['USE_ACL']: