# configuration file and listed as "active". It can be empty,
# but it has to exist.
defmake_bridges(_rules):
try:
bridge_file=import_module(_rules)
logger.info('(ROUTER) Routing bridges file found and bridges imported')
exceptImportError:
sys.exit('(ROUTER) TERMINATING: Routing bridges file not found or invalid')
# Convert integer GROUP ID numbers from the config into hex strings
# we need to send in the actual data packets.
for_bridgeinbridge_file.BRIDGES:
for_systeminbridge_file.BRIDGES[_bridge]:
for_bridgein_rules:
for_systemin_rules[_bridge]:
if_system['SYSTEM']notinCONFIG['SYSTEMS']:
sys.exit('ERROR: Conference bridge "{}" references a system named "{}" that is not enabled in the main configuration'.format(_bridge,_system['SYSTEM']))
@ -117,7 +111,7 @@ def make_bridges(_rules):
_system['TIMER']=time()+_system['TIMEOUT']
else:
_system['TIMER']=time()
returnbridge_file.BRIDGES
return_rules
# Run this every minute for rule timer updates
@ -741,6 +735,7 @@ if __name__ == '__main__':
# CLI argument parser - handles picking up the config file from the command line, and sending a "help" message