Clean-up, re-arranging

This commit is contained in:
Cort Buffington 2016-12-22 12:53:08 -06:00
parent cc2adcffae
commit ea606b0424
5 changed files with 1 additions and 6 deletions

View File

@ -70,10 +70,7 @@ __email__ = 'n0mjs@me.com'
# #
TS_CLEAR_TIME = .2 TS_CLEAR_TIME = .2
# Import Bridging rules # Build the conference bridging structure from the bridge file.
# Note: A stanza *must* exist for any IPSC configured in the main
# configuration file and listed as "active". It can be empty,
# but it has to exist.
# #
def make_bridges(_confbridge_rules): def make_bridges(_confbridge_rules):
try: try:
@ -85,11 +82,9 @@ def make_bridges(_confbridge_rules):
# Convert integer GROUP ID numbers from the config into hex strings # Convert integer GROUP ID numbers from the config into hex strings
# we need to send in the actual data packets. # we need to send in the actual data packets.
# #
for _bridge in bridge_file.BRIDGES: for _bridge in bridge_file.BRIDGES:
for _system in bridge_file.BRIDGES[_bridge]: for _system in bridge_file.BRIDGES[_bridge]:
from pprint import pprint from pprint import pprint
#pprint(CONFIG['SYSTEMS'])
if _system['SYSTEM'] not in CONFIG['SYSTEMS']: if _system['SYSTEM'] not in CONFIG['SYSTEMS']:
print(_system['SYSTEM']) print(_system['SYSTEM'])
sys.exit('ERROR: Conference bridges found for system not configured main configuration') sys.exit('ERROR: Conference bridges found for system not configured main configuration')