Working with Call Control Packets

I’m very close to figuring these out. Getting them taken care of will
end the clipped transmissions when bridging.
This commit is contained in:
Cort Buffington 2013-11-22 15:43:47 -06:00
parent 45da762a38
commit 94ef04fbea
1 changed files with 7 additions and 3 deletions

10
dmrlink.py Normal file → Executable file
View File

@ -417,18 +417,21 @@ class IPSC(DatagramProtocol):
#************************************************
def call_ctl_1(self, _network, _data):
print('({}) Call Control Type 1 Packet Received' .format(_network))
print('({}) Call Control Type 1 Packet Received: {}' .format(_network, h(_data)))
def call_ctl_2(self, _network, _data):
print('({}) Call Control Type 2 Packet Received' .format(_network))
print('({}) Call Control Type 2 Packet Received: {}' .format(_network, h(_data)))
def call_ctl_3(self, _network, _data):
print('({}) Call Control Type 3 Packet Received' .format(_network))
print('({}) Call Control Type 3 Packet Received: {}' .format(_network, h(_data)))
def xcmp_xnl(self, _network, _data):
#print('({}) XCMP/XNL Packet Received' .format(_network))
pass
def repeater_wake_up(self, _network, _data):
print('({}) Repeater Wake-Up Packet Received: {}' .format(_network, h(_data)))
def group_voice(self, _network, _src_sub, _dst_sub, _ts, _end, _peerid, _data):
_dst_sub = get_info(int_id(_dst_sub), talkgroup_ids)
_peerid = get_info(int_id(_peerid), peer_ids)
@ -679,6 +682,7 @@ class IPSC(DatagramProtocol):
return
elif (_packettype == RPT_WAKE_UP):
self.repeater_wake_up(self._network, data)
logger.debug('(%s) Repeater Wake-Up Packet From:%s:%s', self._network, host, port)
return
return