From 1e86050f0f08aed04690a7111f013c93113bec93 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 30 Jan 2022 22:53:04 +0000 Subject: [PATCH] Status --- AMI.py | 2 +- bridge_master.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AMI.py b/AMI.py index be77d9e..d6d4086 100644 --- a/AMI.py +++ b/AMI.py @@ -73,5 +73,5 @@ if __name__ == '__main__': a = AMI(sys.argv[1],int(sys.argv[2]),'admin','llcgi',29177) #AMIOBJ.AMIClientFactory(AMIOBJ.AMIClient,'rpt cmd 29177 ilink 3 2001') - a.send_command(sys.argv[3].encode('utf-8')) + a.send_command(sys.argv[3]) reactor.run() diff --git a/bridge_master.py b/bridge_master.py index 9381b33..abd4ce8 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -2369,6 +2369,9 @@ class routerHBP(HBSYSTEM): if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']): 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') + 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)