Fix voice - again
This commit is contained in:
parent
2f1b128be7
commit
a4fe1995d2
@ -1427,7 +1427,7 @@ class routerHBP(HBSYSTEM):
|
|||||||
_int_dst_id = int_id(_dst_id)
|
_int_dst_id = int_id(_dst_id)
|
||||||
|
|
||||||
#Handle private calls (for reflectors)
|
#Handle private calls (for reflectors)
|
||||||
if _call_type == 'unit':
|
if _call_type == 'unit' and _slot == 2:
|
||||||
if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']):
|
if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']):
|
||||||
logger.warning('(%s) Reflector: Private call from %s to %s',self._system, int_id(_rf_src), _int_dst_id)
|
logger.warning('(%s) Reflector: Private call from %s to %s',self._system, int_id(_rf_src), _int_dst_id)
|
||||||
#if _int_dst_id >= 4000 and _int_dst_id <= 5000:
|
#if _int_dst_id >= 4000 and _int_dst_id <= 5000:
|
||||||
@ -1546,7 +1546,7 @@ class routerHBP(HBSYSTEM):
|
|||||||
for num in str(_int_dst_id):
|
for num in str(_int_dst_id):
|
||||||
_say.append(words[num])
|
_say.append(words[num])
|
||||||
|
|
||||||
speech = pkt_gen(bytes_3(5000), _nine, bytes_4(9), _slot, _say)
|
speech = pkt_gen(bytes_3(5000), _nine, bytes_4(9), 1, _say)
|
||||||
|
|
||||||
#call speech in a thread as it contains sleep() and hence could block the reactor
|
#call speech in a thread as it contains sleep() and hence could block the reactor
|
||||||
reactor.callInThread(sendSpeech,self,speech)
|
reactor.callInThread(sendSpeech,self,speech)
|
||||||
|
Loading…
Reference in New Issue
Block a user