Fix for not flushing DTMF buffer at end of call

This commit is contained in:
David Yat Sin 2013-03-21 10:41:16 -04:00
parent ac0defb874
commit fb9163fe5a
1 changed files with 4 additions and 0 deletions

View File

@ -2968,6 +2968,10 @@ static ftdm_status_t ftdm_channel_done(ftdm_channel_t *ftdmchan)
ftdm_buffer_zero(ftdmchan->gen_dtmf_buffer); ftdm_buffer_zero(ftdmchan->gen_dtmf_buffer);
} }
if (ftdmchan->dtmf_buffer) {
ftdm_buffer_zero(ftdmchan->dtmf_buffer);
}
if (ftdmchan->digit_buffer) { if (ftdmchan->digit_buffer) {
ftdm_buffer_zero(ftdmchan->digit_buffer); ftdm_buffer_zero(ftdmchan->digit_buffer);
} }