From 26623cf4deae42c6b8199ef94b559724dee409d8 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 30 Jan 2022 23:20:10 +0000 Subject: [PATCH] tmphang --- bridge_master.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 1dee63d..06aefc6 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -2367,9 +2367,9 @@ class routerHBP(HBSYSTEM): #Handle AMI if _call_type == 'unit' and not _data_call and _slot == 1: - self.STATUS[_slot]['TX_TIME'] = self.STATUS[_slot]['TX_TIME'] - 20 - - if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']): + if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']): + _tmp_hang = self._system['GROUP_HANGTIME'] + self._system['GROUP_HANGTIME'] = 0 if _int_dst_id == 4000: 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') @@ -2381,6 +2381,8 @@ class routerHBP(HBSYSTEM): AMIOBJ.send_command('ilink 6 0') AMIOBJ.send_command('ilink 3 ' + str(_int_dst_id)) + self._system['GROUP_HANGTIME'] = _tmp_hang + if (_frame_type == HBPF_DATA_SYNC) and (_dtype_vseq == HBPF_SLT_VTERM) and (self.STATUS[_slot]['RX_TYPE'] != HBPF_SLT_VTERM): pass