switch_rtp_stats_t stats;
uint32_t hot_hits;
uint32_t sync_packets;
- uint32_t dtmf_wait;
#ifdef ENABLE_ZRTP
zrtp_session_t *zrtp_session;
rtp_session->next_write_samplecount = rtp_session->timer.samplecount + samples * 5;
}
rtp_session->dtmf_data.out_digit_dur = 0;
- rtp_session->dtmf_wait = rtp_session->samples_per_interval ? ((rtp_session->samples_per_second / 4) / rtp_session->samples_per_interval) : 12;
}
}
}
}
- if (rtp_session->dtmf_wait) {
- rtp_session->dtmf_wait--;
- }
-
- if (!rtp_session->dtmf_wait && switch_queue_trypop(rtp_session->dtmf_data.dtmf_queue, &pop) == SWITCH_STATUS_SUCCESS) {
+ if (switch_queue_trypop(rtp_session->dtmf_data.dtmf_queue, &pop) == SWITCH_STATUS_SUCCESS) {
switch_dtmf_t *rdigit = pop;
int64_t offset;
switch_size_t wrote;
while (switch_rtp_ready(rtp_session)) {
int do_cng = 0;
+ bytes = 0;
if (rtp_session->timer.interval) {
if ((switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOFLUSH) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_STICKY_FLUSH)) &&
}
recvfrom:
+ bytes = 0;
if (!switch_rtp_ready(rtp_session)) {
break;
if (bytes) {
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ)) {
if (((rtp_session->cng_pt && rtp_session->recv_msg.header.pt == rtp_session->cng_pt) || rtp_session->recv_msg.header.pt == 13)) {
- bytes = 0;
goto recvfrom;
}
} else if (!switch_cmp_addr(rtp_session->from_addr, rtp_session->remote_addr)) {
- bytes = 0;
goto recvfrom;
}
if (!switch_rtp_ready(rtp_session)) {
goto end;
}
- switch_cond_next();
- goto recvfrom;
+ return_cng_frame();
}
timer_check: