|
|
|
@ -414,6 +414,8 @@ class OPENBRIDGE(DatagramProtocol):
|
|
|
|
_h.update(_packet[:69])
|
|
|
|
_h.update(_packet[:69])
|
|
|
|
|
|
|
|
|
|
|
|
_ckhs = _h.digest()
|
|
|
|
_ckhs = _h.digest()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_stream_id = _data[16:20]
|
|
|
|
|
|
|
|
|
|
|
|
if compare_digest(_hash, _ckhs) and (_sockaddr == self._config['TARGET_SOCK'] or self._config['RELAX_CHECKS']):
|
|
|
|
if compare_digest(_hash, _ckhs) and (_sockaddr == self._config['TARGET_SOCK'] or self._config['RELAX_CHECKS']):
|
|
|
|
_peer_id = _data[11:15]
|
|
|
|
_peer_id = _data[11:15]
|
|
|
|
@ -437,7 +439,6 @@ class OPENBRIDGE(DatagramProtocol):
|
|
|
|
_call_type = 'group'
|
|
|
|
_call_type = 'group'
|
|
|
|
_frame_type = (_bits & 0x30) >> 4
|
|
|
|
_frame_type = (_bits & 0x30) >> 4
|
|
|
|
_dtype_vseq = (_bits & 0xF) # data, 1=voice header, 2=voice terminator; voice, 0=burst A ... 5=burst F
|
|
|
|
_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))
|
|
|
|
#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
|
|
|
|
#Don't do anything if we are STUNned
|
|
|
|
|