work on AMBE dump
This commit is contained in:
parent
b9b21ebebf
commit
fb72151c8f
@ -46,10 +46,11 @@ class ambeIPSC(IPSC):
|
|||||||
def group_voice(self, _network, _src_sub, _dst_sub, _ts, _end, _peerid, _data):
|
def group_voice(self, _network, _src_sub, _dst_sub, _ts, _end, _peerid, _data):
|
||||||
# THIS FUNCTION IS NOT COMPLETE!!!!
|
# THIS FUNCTION IS NOT COMPLETE!!!!
|
||||||
_payload_type = _data[30:31]
|
_payload_type = _data[30:31]
|
||||||
|
_ambe_frames = _data[33:51]
|
||||||
if _payload_type == BURST_DATA_TYPE['SLOT1_VOICE']:
|
if _payload_type == BURST_DATA_TYPE['SLOT1_VOICE']:
|
||||||
print('SLOT 1 Voice Burst Data Recieved')
|
print(h(_ambe_frames))
|
||||||
if _payload_type == BURST_DATA_TYPE['SLOT2_VOICE']:
|
if _payload_type == BURST_DATA_TYPE['SLOT2_VOICE']:
|
||||||
print('SLOT 2 Voice Burst Data Recieved')
|
print(h(_ambe_frames))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user