FreeCalypso > hg > sipout-test-utils
diff test-voice/rtp_rx.c @ 16:4f81b959a5f5
sipout-test-voice: implement PCMU GSM uplink catcher
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 13 May 2024 22:10:25 -0800 |
parents | 35c0d9f03c0a |
children |
line wrap: on
line diff
--- a/test-voice/rtp_rx.c Sat May 11 22:27:07 2024 -0800 +++ b/test-voice/rtp_rx.c Mon May 13 22:10:25 2024 -0800 @@ -40,6 +40,7 @@ { is_state = 0; is_hunt_fill = 0; + pcmu_catcher_reset(); } static void @@ -255,6 +256,11 @@ } for (is_chunk = 0; is_chunk < 10; is_chunk++) is_rx_process(pkt.payload + is_chunk * 16, is_chunk); + switch (pkt.m_pt & 0x7F) { + case PSTN_CODEC_PCMU: + pcmu_catcher_process(pkt.payload); + break; + } } void