From: Mirko Vogt Date: Thu, 8 Nov 2012 14:50:56 +0000 (+0000) Subject: [packages/asterisk] upgrade lantiq channel driver to latest version X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d71c1da57680a1ffbd79b48893eba86809647ffc;p=openwrt%2Fsvn-archive%2Farchive.git [packages/asterisk] upgrade lantiq channel driver to latest version This fixes compatibility issues with TAPI version 3 SVN-Revision: 34121 --- diff --git a/net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c b/net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c index fa2ee55b53..6e2b5022c0 100644 --- a/net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c +++ b/net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c @@ -631,9 +631,13 @@ static void lantiq_jb_get_stats(int c) { if (ioctl (dev_ctx.ch_fd[c], IFX_TAPI_JB_STATISTICS_GET, (IFX_int32_t) ¶m) != IFX_SUCCESS) { ast_debug(1, "Error getting jitter buffer stats.\n"); } else { +#if !defined (TAPI_VERSION3) && defined (TAPI_VERSION4) ast_debug(1, "Jitter buffer stats: dev=%u, ch=%u, nType=%u, nBufSize=%u, nIsUnderflow=%u, nDsOverflow=%u, nPODelay=%u, nInvalid=%u", (uint32_t) param.dev, (uint32_t) param.ch, +#else + ast_debug(1, "Jitter buffer stats: nType=%u, nBufSize=%u, nIsUnderflow=%u, nDsOverflow=%u, nPODelay=%u, nInvalid=%u", +#endif (uint32_t) param.nType, (uint32_t) param.nBufSize, (uint32_t) param.nIsUnderflow,