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 c7566ee..e91c4c5 100755 --- a/hblink.py +++ b/hblink.py @@ -497,6 +497,11 @@ class HBSYSTEM(DatagramProtocol): logger.info('(%s) Peer %s (%s) has send options: %s', self._system, self._peers[_peer_id]['CALLSIGN'], int_id(_peer_id), _data[8:]) self.transport.write(b''.join([RPTACK, _peer_id]), _sockaddr) + + elif _command == DMRA: + _peer_if = _data[4:8] + logger.info('(%s) Recieved DMR Talker Alias from peer %s, subscriber %s', self._system, self._peers[_peer_id]['CALLSIGN'], int_id(_peer_id)) + else: logger.error('(%s) Unrecognized command. Raw HBP PDU: %s', self._system, ahex(_data))