remove duplicate voice start header log messages
This commit is contained in:
parent
697b492d4e
commit
3209fce782
@ -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'}
|
'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)
|
# Setup the backup/polite bridging maintenance loop (based on keep-alive timer)
|
||||||
|
|
||||||
if BRIDGES:
|
if BRIDGES:
|
||||||
@ -219,6 +221,7 @@ class bridgeIPSC(IPSC):
|
|||||||
# Process the packet
|
# 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))
|
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)
|
_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:
|
if _ts == 0:
|
||||||
_TS = 'TS1'
|
_TS = 'TS1'
|
||||||
elif _ts == 1:
|
elif _ts == 1:
|
||||||
@ -330,7 +333,9 @@ class bridgeIPSC(IPSC):
|
|||||||
|
|
||||||
# Action happens on key up
|
# Action happens on key up
|
||||||
if _burst_data_type == BURST_DATA_TYPE['VOICE_HEAD']:
|
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
|
# Action happens on un-key
|
||||||
if _burst_data_type == BURST_DATA_TYPE['VOICE_TERM']:
|
if _burst_data_type == BURST_DATA_TYPE['VOICE_TERM']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user