diff --git a/const.py b/const.py index 09c6ff3..164992d 100755 --- a/const.py +++ b/const.py @@ -67,6 +67,7 @@ RPTC = b'RPTC' RPTP = b'RPTP' RPTA = b'RPTA' RPTO = b'RPTO' +DMRA = b'DMRA' # Higheset peer ID permitted by HBP diff --git a/hblink.py b/hblink.py index 7365bfe..25065d3 100755 --- a/hblink.py +++ b/hblink.py @@ -552,6 +552,10 @@ class HBSYSTEM(DatagramProtocol): else: self.transport.write(b''.join([MSTNAK, _peer_id]), _sockaddr) logger.warning('(%s) Ping from Radio ID that is not logged in: %s', self._system, int_id(_peer_id)) + + elif _command == DMRA: + _peer_id = _data[4:8] + logger.info('(%s) Peer has sent Talker Alias packet %s', self._system, _data) else: logger.error('(%s) Unrecognized command. Raw HBP PDU: %s', self._system, _data)