@ -421,9 +421,9 @@ def topoWrite():
logger . warning ( ' (TOPO) Cannot write topography file to disk ' )
def topoRead ( ) :
_topo = { }
try :
_fh = open ( CONFIG [ ' ALIASES ' ] [ ' PATH ' ] + CONFIG [ ' ALIASES ' ] [ ' TOPO_FILE ' ] , ' r ' )
_topo = { }
_topo = json . load ( _fh )
_fh . close ( )
logger . info ( ' (TOPO) Reading topography file from disk ' )
@ -1664,7 +1664,7 @@ class routerOBP(OPENBRIDGE):
self . _report . send_bridgeEvent ( ' UNIT CSBK,DATA,RX, {} , {} , {} , {} , {} , {} ' . format ( self . _system , int_id ( _stream_id ) , int_id ( _peer_id ) , int_id ( _rf_src ) , _slot , int_id ( _dst_id ) ) . encode ( encoding = ' utf-8 ' , errors = ' ignore ' ) )
elif _dtype_vseq == 6 :
logger . info ( ' ( %s ) *UNIT DATA HEADER* STREAM ID: %s , RPTR: %s SUB: %s ( %s ) PEER: %s ( %s ) DST_ID %s ( %s ), TS %s , SRC: %s , RPTR: %s ' , \
self . _system , int_id ( _stream_id ) , self . get_rptr ( _source_rptr ) , get_alias ( _rf_src , subscriber_ids ) , int_id ( _rf_src ) , get_alias ( _peer_id , peer_ids ) , int_id ( _peer_id ) , get_alias ( _dst_id , talkgroup_ids ) , int_id ( _dst_id ) , _slot , int_id ( _source_server ,int_id ( _source_rptr ) ) )
self . _system , int_id ( _stream_id ) , self . get_rptr ( _source_rptr ) , get_alias ( _rf_src , subscriber_ids ) , int_id ( _rf_src ) , get_alias ( _peer_id , peer_ids ) , int_id ( _peer_id ) , get_alias ( _dst_id , talkgroup_ids ) , int_id ( _dst_id ) , _slot , int_id ( _source_server ) ,int_id ( _source_rptr ) )
if CONFIG [ ' REPORTS ' ] [ ' REPORT ' ] :
self . _report . send_bridgeEvent ( ' UNIT DATA HEADER,DATA,RX, {} , {} , {} , {} , {} , {} ' . format ( self . _system , int_id ( _stream_id ) , int_id ( _peer_id ) , int_id ( _rf_src ) , _slot , int_id ( _dst_id ) ) . encode ( encoding = ' utf-8 ' , errors = ' ignore ' ) )
elif _dtype_vseq == 7 :