Fixed flush buffer command so that its backward compatible
with 3.4 release git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1037 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
34f45f3c67
commit
ba1f719c3e
|
@ -486,8 +486,10 @@ static ZIO_OPEN_FUNCTION(wanpipe_open)
|
|||
wanpipe_tdm_api_t tdm_api;
|
||||
|
||||
memset(&tdm_api,0,sizeof(tdm_api));
|
||||
sangoma_flush_bufs(zchan->sockfd, &tdm_api);
|
||||
sangoma_tdm_flush_bufs(zchan->sockfd, &tdm_api);
|
||||
#ifdef LIBSANGOMA_VERSION
|
||||
sangoma_flush_event_bufs(zchan->sockfd, &tdm_api);
|
||||
#endif
|
||||
|
||||
if (zchan->type == ZAP_CHAN_TYPE_DQ921 || zchan->type == ZAP_CHAN_TYPE_DQ931) {
|
||||
zchan->native_codec = zchan->effective_codec = ZAP_CODEC_NONE;
|
||||
|
|
Loading…
Reference in New Issue