@ -416,9 +416,9 @@ def stream_trimmer_loop():
_sysconfig = CONFIG [ ' SYSTEMS ' ] [ system ]
_sysconfig = CONFIG [ ' SYSTEMS ' ] [ system ]
#systems[system].STATUS[stream_id]['_fin'] = True
#systems[system].STATUS[stream_id]['_fin'] = True
logger . info ( ' ( %s ) *TIME OUT* STREAM ID: %s SUB: %s PEER: %s TGID: %s TS 1 Duration: %.2f ' , \
logger . info ( ' ( %s ) *TIME OUT* STREAM ID: %s SUB: %s PEER: %s TGID: %s TS 1 Duration: %.2f ' , \
system , int_id ( stream_id ) , get_alias ( int_id ( _stream [ ' RFS ' ] ) , subscriber_ids ) , get_alias ( int_id ( _s ysconfig[ ' NETWORK_ID ' ] ) , peer_ids ) , get_alias ( int_id ( _stream [ ' TGID ' ] ) , talkgroup_ids ) , _stream [ ' LAST ' ] - _stream [ ' START ' ] )
system , int_id ( stream_id ) , get_alias ( int_id ( _stream [ ' RFS ' ] ) , subscriber_ids ) , get_alias ( int_id ( _s tream[ ' RX_PEER ' ] ) , peer_ids ) , get_alias ( int_id ( _stream [ ' TGID ' ] ) , talkgroup_ids ) , _stream [ ' LAST ' ] - _stream [ ' START ' ] )
if CONFIG [ ' REPORTS ' ] [ ' REPORT ' ] :
if CONFIG [ ' REPORTS ' ] [ ' REPORT ' ] :
systems [ system ] . _report . send_bridgeEvent ( ' GROUP VOICE,END,RX, {} , {} , {} , {} , {} , {} , {:.2f} ' . format ( system , int_id ( stream_id ) , int_id ( _s ysconfig[ ' NETWORK_ID ' ] ) , int_id ( _stream [ ' RFS ' ] ) , 1 , int_id ( _stream [ ' TGID ' ] ) , _stream [ ' LAST ' ] - _stream [ ' START ' ] ) . encode ( encoding = ' utf-8 ' , errors = ' ignore ' ) )
systems [ system ] . _report . send_bridgeEvent ( ' GROUP VOICE,END,RX, {} , {} , {} , {} , {} , {} , {:.2f} ' . format ( system , int_id ( stream_id ) , int_id ( _s tream[ ' RX_PEER ' ] ) , int_id ( _stream [ ' RFS ' ] ) , 1 , int_id ( _stream [ ' TGID ' ] ) , _stream [ ' LAST ' ] - _stream [ ' START ' ] ) . encode ( encoding = ' utf-8 ' , errors = ' ignore ' ) )
systems [ system ] . STATUS [ stream_id ] [ ' _to ' ] = True
systems [ system ] . STATUS [ stream_id ] [ ' _to ' ] = True
continue
continue
#except:
#except:
@ -1185,6 +1185,7 @@ class routerOBP(OPENBRIDGE):
' CONTENTION ' : False ,
' CONTENTION ' : False ,
' RFS ' : _rf_src ,
' RFS ' : _rf_src ,
' TGID ' : _dst_id ,
' TGID ' : _dst_id ,
' RX_PEER ' : _peer_id
}
}
# Generate LCs (full and EMB) for the TX stream
# Generate LCs (full and EMB) for the TX stream
try :
try :
@ -1333,7 +1334,8 @@ class routerOBP(OPENBRIDGE):
' TGID ' : _dst_id ,
' TGID ' : _dst_id ,
' 1ST ' : True ,
' 1ST ' : True ,
' lastSeq ' : False ,
' lastSeq ' : False ,
' lastData ' : False
' lastData ' : False ,
' RX_PEER ' : _peer_id
}
}
@ -1548,6 +1550,7 @@ class routerHBP(HBSYSTEM):
' CONTENTION ' : False ,
' CONTENTION ' : False ,
' RFS ' : _rf_src ,
' RFS ' : _rf_src ,
' TGID ' : _dst_id ,
' TGID ' : _dst_id ,
' RX_PEER ' : _peer_id
}
}
# Generate LCs (full and EMB) for the TX stream
# Generate LCs (full and EMB) for the TX stream
dst_lc = b ' ' . join ( [ self . STATUS [ _slot ] [ ' RX_LC ' ] [ 0 : 3 ] , _target [ ' TGID ' ] , _rf_src ] )
dst_lc = b ' ' . join ( [ self . STATUS [ _slot ] [ ' RX_LC ' ] [ 0 : 3 ] , _target [ ' TGID ' ] , _rf_src ] )