From 55ff21a0ae18de27b44a572d4fcfa4907114e793 Mon Sep 17 00:00:00 2001 From: Shane Daley Date: Tue, 12 Oct 2021 19:35:07 -0400 Subject: [PATCH] Dial-A-TG bug fix Fix Dial-A-TG - Exclude privately dialed 9 in Dial-A-TG, return "busy" when dialled. (HackNix fix!) --- bridge_master.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index a74d7a3..a23914d 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -1767,7 +1767,7 @@ class routerHBP(HBSYSTEM): logger.warning('(%s) Reflector: Private call from %s to %s',self._system, int_id(_rf_src), _int_dst_id) #if _int_dst_id >= 4000 and _int_dst_id <= 5000: - if _int_dst_id >= 5 and _int_dst_id <= 999999: + if _int_dst_id >= 5 and _int_dst_id != 9 and _int_dst_id <= 999999: _bridgename = '#'+ str(_int_dst_id) if _bridgename not in BRIDGES and not (_int_dst_id >= 4000 and _int_dst_id <= 5000) and not (_int_dst_id >=9991 and _int_dst_id <= 9999): logger.info('(%s) [A] Reflector for TG %s does not exist. Creating as User Activated. Timeout: %s',self._system, _int_dst_id,CONFIG['SYSTEMS'][self._system]['DEFAULT_UA_TIMER']) @@ -1834,7 +1834,13 @@ class routerHBP(HBSYSTEM): # for character in _systemcs: # _say.append(words[character]) # _say.append(words['silence']) - + + if _int_dst_id <= 5 or _int_dst_id == 9: + logger.info('(%s) Reflector: voice called - TG < 5 or 9 - "busy""', self._system) + _say.append(words[_lang]['busy']) + _say.append(words[_lang]['silence']) + + #If disconnection called if _int_dst_id == 4000: logger.info('(%s) Reflector: voice called - 4000 "not linked"', self._system)