remove duplicate voice start header log messages

This commit is contained in:
Cort Buffington 2016-09-10 10:41:42 -05:00
parent 697b492d4e
commit 3209fce782
1 changed files with 6 additions and 1 deletions

View File

@ -175,6 +175,8 @@ class bridgeIPSC(IPSC):
'TS2': {'RX_GROUP':'\x00', 'TX_GROUP':'\x00', 'RX_TIME':0, 'TX_TIME':0, 'RX_SRC_SUB':'\x00', 'TX_SRC_SUB':'\x00'}
}
last_seq_id = ''
# Setup the backup/polite bridging maintenance loop (based on keep-alive timer)
if BRIDGES:
@ -219,6 +221,7 @@ class bridgeIPSC(IPSC):
# Process the packet
logger.debug('(%s) Group Voice Packet Received From: %s, IPSC Peer %s, Destination %s', _network, int_id(_src_sub), int_id(_peerid), int_id(_dst_group))
_burst_data_type = _data[30] # Determine the type of voice packet this is (see top of file for possible types)
_seq_id = _data[5]
if _ts == 0:
_TS = 'TS1'
elif _ts == 1:
@ -330,7 +333,9 @@ class bridgeIPSC(IPSC):
# Action happens on key up
if _burst_data_type == BURST_DATA_TYPE['VOICE_HEAD']:
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))
if last_seq_id != seq_id:
last_seq_id = seq_id:
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))
# Action happens on un-key
if _burst_data_type == BURST_DATA_TYPE['VOICE_TERM']: