@ -305,10 +305,10 @@ class OPENBRIDGE(DatagramProtocol):
ifself._config['NETWORK_ID']!=_peer_id:
logger.error('(%s) OpenBridge packet discarded because NETWORK_ID: %s Does not match sent Peer ID: %s',self._system,int_id(self._config['NETWORK_ID']),int_id(_peer_id))
return
_seq =_data[4]
_rf_src =_data[5:8]
_dst_id =_data[8:11]
_timestamp =_data[12:19]
_timestamp =_data[5:12]
_seq =_data[12]
_rf_src =_data[13:16]
_dst_id =_data[16:19]
_bits=_data[23]
_slot=2if(_bits&0x80)else1
#_call_type = 'unit' if (_bits & 0x40) else 'group'
@ -375,7 +375,7 @@ class OPENBRIDGE(DatagramProtocol):
#Remove timestamp from data. For now dmrd_received does not expect it
#Leaving it in screws up the AMBE data
_data=b''.join([_data[:12],_data[19:]])
_data=b''.join([_data[:5],_data[12:]])
# Userland actions -- typically this is the function you subclass for an application