FS-8425 #resolve [DTMF sometimes missed on PSTN call]

This commit is contained in:
Anthony Minessale 2015-11-06 14:33:07 -06:00
parent 91e86ab352
commit 56a10538dc
1 changed files with 5 additions and 5 deletions

View File

@ -5508,7 +5508,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
if (rtp_session->last_rtp_hdr.pt == rtp_session->recv_te ||
(*bytes < rtp_header_len && *bytes > 0) ||
rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA] || rtp_session->flags[SWITCH_RTP_FLAG_UDPTL]) {
return SWITCH_STATUS_SUCCESS;
return SWITCH_STATUS_BREAK;
}
if (ts) {
@ -6101,10 +6101,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
goto rtcp;
}
//if (status != SWITCH_STATUS_FALSE) {
// read_pretriggered = 1;
// break;
//}
if (status == SWITCH_STATUS_BREAK) {
read_pretriggered = 1;
break;
}
}
} else if ((rtp_session->flags[SWITCH_RTP_FLAG_AUTOFLUSH] || rtp_session->flags[SWITCH_RTP_FLAG_STICKY_FLUSH])) {