Add blacklist on rate drop

Fix es_ES voices
api
Simon 3 years ago
parent a6045a5c26
commit d3ca3d0e0f

@ -1499,6 +1499,7 @@ class routerOBP(OPENBRIDGE):
#Rate drop #Rate drop
if self.STATUS[_stream_id]['packets'] > 18 and (self.STATUS[_stream_id]['packets'] / self.STATUS[_stream_id]['START'] > 25): if self.STATUS[_stream_id]['packets'] > 18 and (self.STATUS[_stream_id]['packets'] / self.STATUS[_stream_id]['START'] > 25):
logger.warning("(%s) *PacketControl* RATE DROP! Stream ID:, %s TGID: %s",self._system,int_id(_stream_id),int_id(_dst_id)) logger.warning("(%s) *PacketControl* RATE DROP! Stream ID:, %s TGID: %s",self._system,int_id(_stream_id),int_id(_dst_id))
self.proxy_BadPeer()
return return
#Duplicate handling# #Duplicate handling#

@ -802,6 +802,10 @@ class HBSYSTEM(DatagramProtocol):
_bltime = str(_bltime) _bltime = str(_bltime)
_prpacket = b''.join([PRBL,peer_id,_bltime.encode('UTF-8')]) _prpacket = b''.join([PRBL,peer_id,_bltime.encode('UTF-8')])
self.transport.write(_prpacket,sockaddr) self.transport.write(_prpacket,sockaddr)
def proxy_BadPeer(self):
for _pi in self._peers:
self.proxy_IPBlackList(_pi,self._peers[_pi]['SOCKADDR'])
def validate_id(self,_peer_id): def validate_id(self,_peer_id):

@ -121,47 +121,7 @@ voiceMap = {
}, },
'es_ES': { 'es_ES': {
'1': 'one', '0': 'zero',
'2': 'two',
'3': 'three',
'4': 'four',
'5': 'five',
'6': 'six',
'7': 'seven',
'8': 'eight',
'9': 'nine',
'A': 'alfa',
'B': 'bravo',
'C': 'charlie',
'D': 'delta',
'E': 'echo',
'F': 'foxtrot',
'G': 'golf',
'H': 'hotel',
'I': 'india',
'J': 'juliet',
'K': 'kilo',
'L': 'lima',
'M': 'mike',
'N': 'november',
'O': 'oscar',
'P': 'papa',
'Q': 'quebec',
'R': 'romeo',
'S': 'sierra',
'T': 'tango',
'U': 'uniform',
'V': 'victor',
'W': 'whiskey',
'X': 'x-ray',
'Y': 'yankee',
'Z': 'zulu',
'to': 'silence',
'notlinked': 'not-linked',
'linkedto': 'linked-to',
'allstar-link-mode': 'alfa'
},
'es_ES_2': {
'1': 'one', '1': 'one',
'2': 'two', '2': 'two',
'3': 'three', '3': 'three',

Loading…
Cancel
Save

Powered by TurnKey Linux.