From 0a5c53afd2c8d509df7f030e4a62e85853df86fc Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Sat, 10 Sep 2016 16:57:48 -0500 Subject: [PATCH] call logging additions --- bridge.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge.py b/bridge.py index 15f8abb..5fa0d75 100755 --- a/bridge.py +++ b/bridge.py @@ -337,15 +337,15 @@ class bridgeIPSC(IPSC): if self.last_seq_id != _seq_id: self.last_seq_id = _seq_id self.call_start = time() - logger.info('(%s) GROUP VOICE START: PEER: %s, SUB: %s, TS: %s, TGID: %s', _network, int_id(_peerid), int_id(_src_sub), _ts+1, int_id(_dst_group)) + logger.info('(%s) GROUP VOICE START: CallID: %s PEER: %s, SUB: %s, TS: %s, TGID: %s', _network, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts+1, int_id(_dst_group)) # Action happens on un-key if _burst_data_type == BURST_DATA_TYPE['VOICE_TERM']: if self.last_seq_id == _seq_id: self.call_duration = time() - self.call_start - logger.info('(%s) GROUP VOICE END: PEER: %s, SUB: %s, TS: %s, TGID: %s Duration: %.2fs', _network, int_id(_peerid), int_id(_src_sub), _ts+1, int_id(_dst_group), self.call_duration) + logger.info('(%s) GROUP VOICE END: CallID: %s PEER: %s, SUB: %s, TS: %s, TGID: %s Duration: %.2fs', _network, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts+1, int_id(_dst_group), self.call_duration) else: - logger.warning('(%s) GROUP VOICE END WITHOUT MATCHING START: PEER: %s, SUB: %s, TS: %s, TGID: %s', _network, int_id(_peerid), int_id(_src_sub), _ts+1, int_id(_dst_group),) + logger.warning('(%s) GROUP VOICE END WITHOUT MATCHING START: CallID: %s PEER: %s, SUB: %s, TS: %s, TGID: %s', _network, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts+1, int_id(_dst_group),) # Iterate the rules dictionary for rule in RULES[_network]['GROUP_VOICE']: