locked Re: HBLINK ECHO-PARROT and DudeSTAR #parrot #closed #hblink #echo #dudestar


Heitor Mercaldi
 

That is the ugly solution that i think for playback.py

#line 112
def dmrd_received(self, _peer_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data):
...
#line 142
else:
                call_duration = pkt_time - self.STATUS['RX_START']
if (self.CALL_DATA and call_duration < 60):
                self.CALL_DATA.append(_data)
else:
logger.info('(%s) *END   RECORDING* STREAM ID: %s', self._system, int_id(_stream_id))
                sleep(2)
                logger.info('(%s) *START TIMEOUT PLAYBACK* STREAM ID: %s SUB: %s (%s) REPEATER: %s (%s) TGID %s (%s), TS %s, Duration: %s', \
                                  self._system, int_id(_stream_id), get_alias(_rf_src, subscriber_ids), int_id(_rf_src), get_alias(_peer_id, peer_ids), int_id(_peer_id), get_alias(_dst_id, talkgroup_ids), int_id(_dst_id), _slot, call_duration)
                for i in self.CALL_DATA:
                    self.send_system(i)
                    #print(i)
                    sleep(0.06)
                self.CALL_DATA = []
                logger.info('(%s) *END  TIMEOUT  PLAYBACK* STREAM ID: %s', self._system, int_id(_stream_id))
 
            # Mark status variables for use later
            self.STATUS[_slot]['RX_RFS']       = _rf_src

Join HBlink@DVSwitch.groups.io to automatically receive all group messages.