Move stream ID further up

extrastats
Simon 3 years ago
parent f2494aec61
commit 1e26e46e4b

@ -415,6 +415,8 @@ class OPENBRIDGE(DatagramProtocol):
_ckhs = _h.digest()
_stream_id = _data[16:20]
if compare_digest(_hash, _ckhs) and (_sockaddr == self._config['TARGET_SOCK'] or self._config['RELAX_CHECKS']):
_peer_id = _data[11:15]
if self._config['NETWORK_ID'] != _peer_id:
@ -437,7 +439,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))
#Don't do anything if we are STUNned

Loading…
Cancel
Save

Powered by TurnKey Linux.