From 9f7ab976fa51b6080e6eddd9b1d7a70dc06df802 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Mon, 7 Jan 2019 13:54:12 -0600 Subject: [PATCH] Add OBP System TX Reporting --- hb_confbridge.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hb_confbridge.py b/hb_confbridge.py index 3e6458b..5ced079 100755 --- a/hb_confbridge.py +++ b/hb_confbridge.py @@ -270,6 +270,8 @@ class routerOBP(OPENBRIDGE): _target_status[_stream_id]['EMB_LC'] = bptc.encode_emblc(dst_lc) logger.info('(%s) Conference Bridge: %s, Call Bridged to OBP System: %s TS: %s, TGID: %s', self._system, _bridge, _target['SYSTEM'], _target['TS'], int_id(_target['TGID'])) + if CONFIG['REPORTS']['REPORT']: + systems[_target['SYSTEM']]._report.send_bridgeEvent('GROUP VOICE,START,TX,{},{},{},{},{},{}'.format(_target['SYSTEM'], int_id(_stream_id), int_id(_peer_id), int_id(_rf_src), _target['TS'], int_id(_target['TGID']))) # Record the time of this packet so we can later identify a stale stream _target_status[_stream_id]['LAST'] = pkt_time @@ -517,6 +519,8 @@ class routerHBP(HBSYSTEM): _target_status[_stream_id]['EMB_LC'] = bptc.encode_emblc(dst_lc) logger.info('(%s) Conference Bridge: %s, Call Bridged to OBP System: %s TS: %s, TGID: %s', self._system, _bridge, _target['SYSTEM'], _target['TS'], int_id(_target['TGID'])) + if CONFIG['REPORTS']['REPORT']: + systems[_target['SYSTEM']]._report.send_bridgeEvent('GROUP VOICE,START,TX,{},{},{},{},{},{}'.format(_target['SYSTEM'], int_id(_stream_id), int_id(_peer_id), int_id(_rf_src), _target['TS'], int_id(_target['TGID']))) # Record the time of this packet so we can later identify a stale stream _target_status[_stream_id]['LAST'] = pkt_time