]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
turn on echo cancellation and turn it off in mg_notify
authorMathieu Rene <mrene@avgs.ca>
Thu, 16 Aug 2012 05:29:43 +0000 (01:29 -0400)
committerMathieu Rene <mrene@avgs.ca>
Thu, 16 Aug 2012 05:29:43 +0000 (01:29 -0400)
libs/freetdm/mod_freetdm/tdm.c

index 30cc3e43071aab71eb9f836fb49dfe40c63fd03a..6c8657a4c96a37ac0a701ae35b73214d04d3ee0d 100644 (file)
@@ -666,7 +666,7 @@ static switch_status_t channel_receive_event(switch_core_session_t *session, swi
                        int enabled = !!switch_true(szval);
                        
                        if (FTDM_SUCCESS != ftdm_channel_command(tech_pvt->ftdm_channel, enabled ? FTDM_COMMAND_ENABLE_ECHOCANCEL : FTDM_COMMAND_DISABLE_ECHOCANCEL, NULL)) {
-                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to %s echo cancellation.\n", enable ? "enable" : "disable");
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to %s echo cancellation.\n", enabled ? "enable" : "disable");
                        }
                }
     }