From 3238084707ea0f74e92272192c5e80d1c477062c Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 27 May 2022 23:53:05 +0100 Subject: [PATCH] fix bridge mode --- bridge.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bridge.py b/bridge.py index 9535bdc..735445d 100755 --- a/bridge.py +++ b/bridge.py @@ -943,6 +943,15 @@ if __name__ == '__main__': # Create the name-number mapping dictionaries peer_ids, subscriber_ids, talkgroup_ids, local_subscriber_ids,server_ids = mk_aliases(CONFIG) + #Add special IDs to DB + subscriber_ids[900999] = 'D-APRS' + subscriber_ids[4294967295] = 'SC' + + CONFIG['_SUB_IDS'] = subscriber_ids + CONFIG['_PEER_IDS'] = peer_ids + CONFIG['_LOCAL_SUBSCRIBER_IDS'] = local_subscriber_ids + CONFIG['_SERVER_IDS'] = server_ids + # Import the ruiles file as a module, and create BRIDGES from it spec = importlib.util.spec_from_file_location("module.name", cli_args.RULES_FILE) rules_module = importlib.util.module_from_spec(spec)