comparison 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
comparison
equal deleted inserted replaced
15:71f01a834820 16:4f81b959a5f5
38 static void 38 static void
39 reset_is_hunt() 39 reset_is_hunt()
40 { 40 {
41 is_state = 0; 41 is_state = 0;
42 is_hunt_fill = 0; 42 is_hunt_fill = 0;
43 pcmu_catcher_reset();
43 } 44 }
44 45
45 static void 46 static void
46 is_rx_hunt(input_pos) 47 is_rx_hunt(input_pos)
47 unsigned input_pos; 48 unsigned input_pos;
253 rtp_last_seq, rtp_last_ts); 254 rtp_last_seq, rtp_last_ts);
254 rtp_start_flag = 1; 255 rtp_start_flag = 1;
255 } 256 }
256 for (is_chunk = 0; is_chunk < 10; is_chunk++) 257 for (is_chunk = 0; is_chunk < 10; is_chunk++)
257 is_rx_process(pkt.payload + is_chunk * 16, is_chunk); 258 is_rx_process(pkt.payload + is_chunk * 16, is_chunk);
259 switch (pkt.m_pt & 0x7F) {
260 case PSTN_CODEC_PCMU:
261 pcmu_catcher_process(pkt.payload);
262 break;
263 }
258 } 264 }
259 265
260 void 266 void
261 rtcp_rx_select() 267 rtcp_rx_select()
262 { 268 {