diff --git a/templates/hblink_table.html b/templates/hblink_table.html index fee4a2e..6f947dc 100755 --- a/templates/hblink_table.html +++ b/templates/hblink_table.html @@ -1,24 +1,14 @@

HBlink Status Tables:

- - - - - - - - - - - - - - - - - - - - +
Homebrew Protocol
Master Systems
ID/Callsign/Location
IP:Port/Time Connected
FrequencyCC
LinkedTS
SlotCall
Type
Source
Subscriber
Destination
+ + + + + + + + + {% for _master in _table['MASTERS'] %} @@ -48,26 +38,16 @@ {% endfor %}
Homebrew Protocol
Master Systems
ID/Callsign/Location
IP:Port/Time Connected
FrequencyCC
LinkedTS
SlotCall
Type
Source
Subscriber
Destination

- - - - - - - - - - - - - - - - - - - - +
Homebrew Protocol
Peer Systems
ID/Callsign/Location
Master IP:Port
Connected
TX/RX/Lost
LinkedTSSlotCall
Type
Source
Subscriber
Destination
+ + + + + + + + + {% for _peer, _pdata in _table['PEERS'].iteritems() %} @@ -91,16 +71,11 @@ {% endfor %}
Homebrew Protocol
Peer Systems
ID/Callsign/Location
Master IP:Port
Connected
TX/RX/Lost
LinkedTSSlotCall
Type
Source
Subscriber
Destination

- - - - - - +
- - - + + + {% for _openbridge in _table['OPENBRIDGES'] %} diff --git a/web_tables.py b/web_tables.py index c50fc92..1e71c45 100755 --- a/web_tables.py +++ b/web_tables.py @@ -244,10 +244,9 @@ def build_hblink_table(_config, _stats_table): def update_hblink_table(_config, _stats_table): # Is there a system in HBlink's config monitor doesn't know about? for _hbp in _config: - add_list = [] if _config[_hbp]['MODE'] == 'MASTER': for _peer in _config[_hbp]['PEERS']: - if int_id(_peer) not in _stats_table['MASTERS'][_hbp]['PEERS']: + if int_id(_peer) not in _stats_table['MASTERS'][_hbp]['PEERS'] and _config[_hbp]['PEERS'][_peer]['CONNECTION'] == 'YES': logger.info('Adding peer to CTABLE that has registerred: %s', int_id(_peer)) add_hb_peer(_config[_hbp]['PEERS'][_peer], _stats_table['MASTERS'][_hbp]['PEERS'], _peer) @@ -379,9 +378,6 @@ def rts_update(p): CTABLE['MASTERS'][system]['PEERS'][peer][timeSlot]['SRC'] = '' CTABLE['MASTERS'][system]['PEERS'][peer][timeSlot]['DEST'] = '' - else: - logger.warning('tried to update a tranmission for a peer not yet listed: system %s, action %s, callType %s, tx/rx %s, streamid %s, sourcePeer %s, sourceSub %s, timeSlot %s, destination %s ', system, action, callType, trx, streamId, sourcePeer, sourceSub, timeSlot, destination) - if system in CTABLE['OPENBRIDGES']: if action == 'START': CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId] = (alias_call(sourceSub, subscriber_ids), destination)
OpenBridge SystemsNetwork ID
Target IP:Port
Active CallsOpenBridge SystemsNetwork ID
Target IP:Port
Active Calls