freetdm: ftmod_wanpipe - flush stats when opening a channel
This commit is contained in:
parent
2b126a1510
commit
894dea2803
|
@ -516,6 +516,7 @@ static FIO_OPEN_FUNCTION(wanpipe_open)
|
||||||
|
|
||||||
memset(&tdm_api,0,sizeof(tdm_api));
|
memset(&tdm_api,0,sizeof(tdm_api));
|
||||||
sangoma_tdm_flush_bufs(ftdmchan->sockfd, &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) {
|
if (ftdmchan->type == FTDM_CHAN_TYPE_DQ921 || ftdmchan->type == FTDM_CHAN_TYPE_DQ931) {
|
||||||
ftdmchan->native_codec = ftdmchan->effective_codec = FTDM_CODEC_NONE;
|
ftdmchan->native_codec = ftdmchan->effective_codec = FTDM_CODEC_NONE;
|
||||||
|
|
Loading…
Reference in New Issue