From 9fdb108bb95f1d318531e5e2ad2e7a62a5913a2f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 25 Nov 2008 19:35:20 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10536 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 78ee4f576f..fa386ea1b8 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1673,6 +1673,10 @@ SWITCH_DECLARE(switch_size_t) switch_rtp_dequeue_dtmf(switch_rtp_t *rtp_session, } switch_mutex_unlock(rtp_session->dtmf_data.dtmf_mutex); + if (bytes) { + rtp_flush_read_buffer(rtp_session); + } + return bytes; }