|
|
|
|
@ -467,7 +467,7 @@ def stream_trimmer_loop():
|
|
|
|
|
fin_list.append(stream_id)
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
#try:
|
|
|
|
|
try:
|
|
|
|
|
if '_to' not in systems[system].STATUS[stream_id] and '_fin' not in systems[system].STATUS[stream_id] and systems[system].STATUS[stream_id]['LAST'] < _now - 5:
|
|
|
|
|
_stream = systems[system].STATUS[stream_id]
|
|
|
|
|
_sysconfig = CONFIG['SYSTEMS'][system]
|
|
|
|
|
@ -486,10 +486,10 @@ def stream_trimmer_loop():
|
|
|
|
|
systems[system]._report.send_bridgeEvent('GROUP VOICE,END,RX,{},{},{},{},{},{},{:.2f}'.format(system, int_id(stream_id), int_id(_stream['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
|
|
|
|
|
continue
|
|
|
|
|
#except:
|
|
|
|
|
#logger.warning("(%s) Keyerror - stream trimmer Stream ID: %s",system,stream_id)
|
|
|
|
|
#systems[system].STATUS[stream_id]['LAST'] = _now
|
|
|
|
|
#continue
|
|
|
|
|
except:
|
|
|
|
|
logger.warning("(%s) Keyerror - stream trimmer Stream ID: %s",system,stream_id)
|
|
|
|
|
systems[system].STATUS[stream_id]['LAST'] = _now
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|