ensure that 'zap show channel' will indicate that the echo canceler has been disabled...
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 28 Mar 2006 19:00:21 +0000 (19:00 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 28 Mar 2006 19:00:21 +0000 (19:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15662 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 1dbf6df..babaeb7 100644 (file)
@@ -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