Also, remove the obsolete protocol versions 2 and 3
and some further tidying up.
Squashed commit of the following:
commit 7b13b9f046
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 19:01:33 2023 +0000
SERVER_ID is bytes!
commit cee3bc76fb
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 18:50:06 2023 +0000
frog
commit 82432b9c2c
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 18:49:53 2023 +0000
fred
commit 6601573c7f
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 18:39:08 2023 +0000
Stringly
commit 28fa37f828
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 18:30:37 2023 +0000
self
commit 3e6d28d4dd
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 18:23:42 2023 +0000
Fix trace
commit a15901dc79
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 18:21:30 2023 +0000
Tweak config file used in install script
commit 654ec135ca
Merge: f75ff26d4e3922
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 17:48:22 2023 +0000
Merge branch 'master' into testing
commit f75ff26cfa
Merge: c0b521648339d3
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 17:46:07 2023 +0000
Merge branch 'master' into testing
commit c0b5216e5a
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 11:04:45 2023 +0000
more config work
commit c79ce0551d
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 00:54:56 2023 +0000
ib
commit 294a09c8f1
Author: Simon <simon@gb7fr.org.uk>
Date: Sun Jan 29 00:50:36 2023 +0000
Enable minimal config and tidy up global ACL
commit d1dc58d46f
Author: Simon <simon@gb7fr.org.uk>
Date: Sat Jan 28 23:12:41 2023 +0000
Deprecate protocol versions 2 and 3
logger.info('(%s) CALL DROPPED WITH STREAM ID %sON TGID %s BY GLOBAL TS1 ACL',self._system,int_id(_stream_id), int_id(_dst_id))
logger.info('(%s) CALL DROPPED WITH STREAM ID %s FROM SUBSCRIBER %s BY GLOBAL TG FILTER (local to repeater)',self._system,int_id(_stream_id),_int_dst_id)
logger.info('(%s) CALL DROPPED WITH STREAM ID %s FROM SUBSCRIBER %s BY SYSTEM ACL',self._system,int_id(_stream_id),int_id(_rf_src))
logger.info('(%s) CALL DROPPED WITH STREAM ID %s FROM SUBSCRIBER %s BY GLOBAL TG FILTER (local to server)',self._system,int_id(_stream_id),_int_dst_id)
logger.info('(%s) CALL DROPPED WITH STREAM ID %sON TGID %s BY SYSTEM ACL',self._system,int_id(_stream_id), int_id(_dst_id))
logger.info('(%s) CALL DROPPED WITH STREAM ID %sFROM SUBSCRIBER %s BY GLOBAL TG FILTER (local to server main ID)',self._system,int_id(_stream_id),_int_dst_id)
self.send_bcsq(_dst_id,_stream_id)
self._laststrid.append(_stream_id)
return
_data=b''.join([DMRD,_data[4:]])
_hops=_inthops.to_bytes(1,'big')
# Userland actions -- typically this is the function you subclass for an application
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))
self._laststrid.append(_stream_id)
return
_seq=_data[4]
_rf_src=_data[5:8]
_dst_id=_data[8:11]
_int_dst_id=int_id(_dst_id)
_bits=_data[15]
_slot=2if(_bits&0x80)else1
#_call_type = 'unit' if (_bits & 0x40) else 'group'
if_bits&0x40:
_call_type='unit'
elif(_bits&0x23)==0x23:
_call_type='vcsbk'
else:
_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