|
|
|
@ -2235,26 +2235,19 @@ class routerHBP(HBSYSTEM):
|
|
|
|
|
|
|
|
|
|
|
|
#Handle AMI private calls
|
|
|
|
#Handle AMI private calls
|
|
|
|
if _call_type == 'unit' and not _data_call and self.STATUS[_slot]['_allStarMode']:
|
|
|
|
if _call_type == 'unit' and not _data_call and self.STATUS[_slot]['_allStarMode']:
|
|
|
|
|
|
|
|
if _int_dst_id == 4000:
|
|
|
|
self.STATUS[_slot]['TX_TIME'] = self.STATUS[_slot]['TX_TIME'] - 20
|
|
|
|
logger.info('(%s) AMI: Private call from %s to %s (Disconnect)',self._system, int_id(_rf_src), _int_dst_id)
|
|
|
|
|
|
|
|
AMIOBJ.send_command('ilink 6 0')
|
|
|
|
if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']):
|
|
|
|
elif _int_dst_id == 5000:
|
|
|
|
pass
|
|
|
|
logger.info('(%s) AMI: Private call from %s to %s (Status)',self._system, int_id(_rf_src), _int_dst_id)
|
|
|
|
|
|
|
|
AMIOBJ.send_command('ilink 5 0')
|
|
|
|
if (_frame_type == HBPF_DATA_SYNC) and (_dtype_vseq == HBPF_SLT_VTERM) and (self.STATUS[_slot]['RX_TYPE'] != HBPF_SLT_VTERM):
|
|
|
|
else:
|
|
|
|
if _int_dst_id == 4000:
|
|
|
|
logger.info('(%s) AMI: Private call from %s to %s (Link)',self._system, int_id(_rf_src), _int_dst_id)
|
|
|
|
logger.info('(%s) AMI: Private call from %s to %s (Disconnect)',self._system, int_id(_rf_src), _int_dst_id)
|
|
|
|
AMIOBJ.send_command('ilink 6 0')
|
|
|
|
AMIOBJ.send_command('ilink 6 0')
|
|
|
|
AMIOBJ.send_command('ilink 3 ' + str(_int_dst_id))
|
|
|
|
elif _int_dst_id == 5000:
|
|
|
|
|
|
|
|
logger.info('(%s) AMI: Private call from %s to %s (Status)',self._system, int_id(_rf_src), _int_dst_id)
|
|
|
|
|
|
|
|
AMIOBJ.send_command('ilink 5 0')
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
logger.info('(%s) AMI: Private call from %s to %s (Link)',self._system, int_id(_rf_src), _int_dst_id)
|
|
|
|
|
|
|
|
AMIOBJ.send_command('ilink 6 0')
|
|
|
|
|
|
|
|
AMIOBJ.send_command('ilink 3 ' + str(_int_dst_id))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Handle private voice calls (for reflectors)
|
|
|
|
#Handle private voice calls (for reflectors)
|
|
|
|
if _call_type == 'unit' and not _data_call and not self.STATUS[_slot]['_allStarMode']:
|
|
|
|
elif _call_type == 'unit' and not _data_call and not self.STATUS[_slot]['_allStarMode']:
|
|
|
|
if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']):
|
|
|
|
if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']):
|
|
|
|
|
|
|
|
|
|
|
|
self.STATUS[_slot]['packets'] = 0
|
|
|
|
self.STATUS[_slot]['packets'] = 0
|
|
|
|
|