# HG changeset patch # User Mychaela Falconia # Date 1709789629 28800 # Node ID eaf0e8f81a229e1f5fecb8348ac24860e74130b3 # Parent 6d832abad66045de92757646647db4088a671073 test-fsk: don't feed RTP to modem Rx during ringing diff -r 6d832abad660 -r eaf0e8f81a22 test-fsk/rtp_rx.c --- a/test-fsk/rtp_rx.c Tue Mar 05 10:57:45 2024 -0800 +++ b/test-fsk/rtp_rx.c Wed Mar 06 21:33:49 2024 -0800 @@ -20,6 +20,8 @@ extern const uint16_t pcmu_decode_table[256]; extern const uint16_t pcma_decode_table[256]; +extern int rtp_out_enable; /* misusing the flag :-( */ + struct sockaddr_in rtp_local_addr; int rtp_udp_fd, rtcp_udp_fd; @@ -124,6 +126,10 @@ rtp_last_seq, rtp_last_ts); rtp_start_flag = 1; } + /* ignore early RTP during ringing, before answer supervision */ + if (!rtp_out_enable) + return; + /* feed samples to modem Rx */ for (n = 0; n < FRAME_20MS; n++) pcm_samples[n] = pcm_dec_table[pkt.payload[n]]; process_rx_frame(pcm_samples);