From 56a10538dc6307fb285dd1f3a31b384f0e5750fa Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 6 Nov 2015 14:33:07 -0600 Subject: [PATCH] FS-8425 #resolve [DTMF sometimes missed on PSTN call] --- src/switch_rtp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 97650b3019..86283587f4 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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])) {