work on AMBE dump

This commit is contained in:
Cort Buffington 2015-03-24 13:28:56 -05:00
parent b9b21ebebf
commit fb72151c8f
1 changed files with 3 additions and 2 deletions

View File

@ -46,10 +46,11 @@ class ambeIPSC(IPSC):
def group_voice(self, _network, _src_sub, _dst_sub, _ts, _end, _peerid, _data):
# THIS FUNCTION IS NOT COMPLETE!!!!
_payload_type = _data[30:31]
_ambe_frames = _data[33:51]
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']:
print('SLOT 2 Voice Burst Data Recieved')
print(h(_ambe_frames))
if __name__ == '__main__':