]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed flush buffer command so that its backward compatible
authorDavid Yat Sin <dyatsin@sangoma.com>
Thu, 18 Feb 2010 19:13:54 +0000 (19:13 +0000)
committerDavid Yat Sin <dyatsin@sangoma.com>
Thu, 18 Feb 2010 19:13:54 +0000 (19:13 +0000)
with 3.4 release

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1037 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c

index dcf55826c3b1a18aa752c241036b039c586b4e12..eba1db346525e58902a4b0eb4c393b8277970e06 100644 (file)
@@ -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;