From: David Yat Sin Date: Thu, 18 Feb 2010 19:13:54 +0000 (+0000) Subject: Fixed flush buffer command so that its backward compatible X-Git-Tag: v1.0.6~38^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba1f719c3e45470e90669dfe5c15adfd720700cd;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c b/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c index dcf55826c3..eba1db3465 100644 --- a/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c +++ b/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c @@ -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;