--- channels/chan_dahdi.c.orig 2010-07-06 22:10:23.000000000 +0000 +++ channels/chan_dahdi.c 2010-07-07 13:07:34.000000000 +0000 @@ -5838,6 +5838,22 @@ ast_verb(3, "Channel %d echo canceler disabled due to CED detection\n", p->channel); p->echocanon = 0; break; + case DAHDI_EVENT_TX_CED_DETECTED: + ast_verb(3, "Channel %d detected a CED tone towards the network.\n", p->channel); + dahdi_disable_ec(p); + break; + case DAHDI_EVENT_RX_CED_DETECTED: + ast_verb(3, "Channel %d detected a CED tone from the network.\n", p->channel); + dahdi_disable_ec(p); + break; + case DAHDI_EVENT_EC_NLP_DISABLED: + ast_verb(3, "Channel %d echo canceler disabled its NLP.\n", p->channel); + dahdi_disable_ec(p); + break; + case DAHDI_EVENT_EC_NLP_ENABLED: + ast_verb(3, "Channel %d echo canceler enabled its NLP.\n", p->channel); + dahdi_enable_ec(p); + break; case DAHDI_EVENT_BITSCHANGED: #ifdef HAVE_OPENR2 if (p->sig != SIG_MFCR2) {