freetdm: ftmod_wanpipe - flush stats when opening a channel

This commit is contained in:
Moises Silva 2010-11-26 12:39:30 -05:00
parent 2b126a1510
commit 894dea2803
1 changed files with 1 additions and 0 deletions

View File

@ -516,6 +516,7 @@ static FIO_OPEN_FUNCTION(wanpipe_open)
memset(&tdm_api,0,sizeof(tdm_api));
sangoma_tdm_flush_bufs(ftdmchan->sockfd, &tdm_api);
sangoma_flush_stats(ftdmchan->sockfd, &tdm_api);
if (ftdmchan->type == FTDM_CHAN_TYPE_DQ921 || ftdmchan->type == FTDM_CHAN_TYPE_DQ931) {
ftdmchan->native_codec = ftdmchan->effective_codec = FTDM_CODEC_NONE;