testing
This commit is contained in:
parent
a41fde756b
commit
c460709c9c
@ -68,6 +68,13 @@ class playIPSC(IPSC):
|
|||||||
#
|
#
|
||||||
def group_voice(self, _network, _src_sub, _dst_group, _ts, _end, _peerid, _data):
|
def group_voice(self, _network, _src_sub, _dst_group, _ts, _end, _peerid, _data):
|
||||||
if _end:
|
if _end:
|
||||||
|
_self_peer = NETWORK[_network]['LOCAL']['RADIO_ID']
|
||||||
|
_self_src = _self_peer[1:]
|
||||||
|
|
||||||
|
if (_peer_id == _self_peer) or (_src_sub == _self_src):
|
||||||
|
print ('oh crap, why are we hearing ourselves?'
|
||||||
|
return
|
||||||
|
|
||||||
if trigger == False:
|
if trigger == False:
|
||||||
if (_ts == 0 and _dst_group not in trigger_groups_1) or (_ts == 1 and _dst_group not in trigger_groups_2):
|
if (_ts == 0 and _dst_group not in trigger_groups_1) or (_ts == 1 and _dst_group not in trigger_groups_2):
|
||||||
return
|
return
|
||||||
@ -84,9 +91,6 @@ class playIPSC(IPSC):
|
|||||||
self.CALL_DATA = pickle.load(open(filename, 'rb'))
|
self.CALL_DATA = pickle.load(open(filename, 'rb'))
|
||||||
logger.info('(Event ID: %s) Playing back file: %s', self.event_id, filename)
|
logger.info('(Event ID: %s) Playing back file: %s', self.event_id, filename)
|
||||||
|
|
||||||
_self_peer = NETWORK[_network]['LOCAL']['RADIO_ID']
|
|
||||||
_self_src = _self_peer[1:]
|
|
||||||
|
|
||||||
for i in self.CALL_DATA:
|
for i in self.CALL_DATA:
|
||||||
_tmp_data = i
|
_tmp_data = i
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user