From: Kevin P. Fleming Date: Tue, 28 Mar 2006 19:00:21 +0000 (+0000) Subject: ensure that 'zap show channel' will indicate that the echo canceler has been disabled... X-Git-Tag: 1.4.0-beta1~2289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7c2eed26a53dd61904cb0a5b11db1ce7318383d;p=thirdparty%2Fasterisk.git ensure that 'zap show channel' will indicate that the echo canceler has been disabled when CED has been detected on the channel git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15662 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 1dbf6df1c3..babaeb7f28 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -3665,6 +3665,13 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast) } switch(res) { +#ifdef ZT_EVENT_EC_DISABLED + case ZT_EVENT_EC_DISABLED: + if (option_verbose > 2) + ast_verbose(VERBOSE_PREFIX_3 "Channel %d echo canceler disabled due to CED detection\n", p->channel); + p->echocanon = 0; + break; +#endif case ZT_EVENT_BITSCHANGED: if (p->sig == SIG_R2) { #ifdef ZAPATA_R2