Rewrite incoming GPS on TG 900999 to PC 900999

Rewrite incoming ECHO on PC9990 to TG9990
lowleveltgfilter
Simon 4 years ago
parent a86c4229dc
commit 4b61e1a802
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

@ -2020,6 +2020,17 @@ class routerHBP(HBSYSTEM):
#Add system to SUB_MAP #Add system to SUB_MAP
SUB_MAP[_rf_src] = (self._system,_slot,pkt_time) SUB_MAP[_rf_src] = (self._system,_slot,pkt_time)
#Rewrite GPS Data comming in as a group call to a unit call
if (_call_type == 'group' or _call_type == 'vcsbk') and _int_dst_id == 900999:
_bits = header(_slot,'unit',_bits)
logger.info('(%s) Type Rewrite - GPS data from ID: %s, on TG 900999 rewritten to unit call to ID 900999',self._system,int_id(_rf_src))
#Rewrite incoming loro request to group call
if _call_type == 'group' and _int_dst_id == 9990:
_bits = header(_slot,'group',_bits)
logger.info('(%s) Type Rewrite - Echo data from ID: %s, on PC 9990 rewritten to group call to TG 9990',self._system,int_id(_rf_src))
if _call_type == 'unit' and (_dtype_vseq == 6 or _dtype_vseq == 7 or _dtype_vseq == 8 or (_stream_id != self.STATUS[_slot]['RX_STREAM_ID'] and _dtype_vseq == 3)): if _call_type == 'unit' and (_dtype_vseq == 6 or _dtype_vseq == 7 or _dtype_vseq == 8 or (_stream_id != self.STATUS[_slot]['RX_STREAM_ID'] and _dtype_vseq == 3)):
_data_call = True _data_call = True

Loading…
Cancel
Save

Powered by TurnKey Linux.