From fb9163fe5a140094015c9e9232320f1e6872816e Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Thu, 21 Mar 2013 10:41:16 -0400 Subject: [PATCH] Fix for not flushing DTMF buffer at end of call --- libs/freetdm/src/ftdm_io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/freetdm/src/ftdm_io.c b/libs/freetdm/src/ftdm_io.c index 26ca79adea..e233220b33 100644 --- a/libs/freetdm/src/ftdm_io.c +++ b/libs/freetdm/src/ftdm_io.c @@ -2968,6 +2968,10 @@ static ftdm_status_t ftdm_channel_done(ftdm_channel_t *ftdmchan) ftdm_buffer_zero(ftdmchan->gen_dtmf_buffer); } + if (ftdmchan->dtmf_buffer) { + ftdm_buffer_zero(ftdmchan->dtmf_buffer); + } + if (ftdmchan->digit_buffer) { ftdm_buffer_zero(ftdmchan->digit_buffer); }