]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Changed EC ENABLE/DISABLE failure from ERROR to WARNING.
authorNenad Corbic <ncorbic@sangoma.com>
Thu, 16 Aug 2012 06:06:10 +0000 (02:06 -0400)
committerNenad Corbic <ncorbic@sangoma.com>
Thu, 16 Aug 2012 06:06:10 +0000 (02:06 -0400)
As some installations have no ec. I will have to test
without ec and confirm that we handle that case gracefully.

libs/freetdm/mod_freetdm/tdm.c

index 6c8657a4c96a37ac0a701ae35b73214d04d3ee0d..f344f5a096c2dc4ba1ec1b6776e4fdb68ececb10 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", enabled ? "enable" : "disable");
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to %s echo cancellation.\n", enabled ? "enable" : "disable");
                        }
                }
     }