OPENZAP-99

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1036 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale
2010-02-18 18:55:03 +00:00
parent 5aa34213df
commit 34f45f3c67
3 changed files with 12 additions and 8 deletions

View File

@@ -1225,9 +1225,7 @@ OZ_DECLARE(zap_status_t) zap_channel_done(zap_channel_t *zchan)
zchan->pre_buffer_size = 0;
zap_mutex_unlock(zchan->pre_buffer_mutex);
if (zchan->dtmf_buffer) {
zap_buffer_zero(zchan->dtmf_buffer);
}
zap_channel_flush_dtmf(zchan);
zchan->init_state = ZAP_CHANNEL_STATE_DOWN;
zchan->state = ZAP_CHANNEL_STATE_DOWN;