]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11775 [core] wait_for_silence debug messages showing as ERR
authorjoshebosh <bitbucket@joshebosh.email>
Wed, 10 Apr 2019 17:13:48 +0000 (13:13 -0400)
committerMike Jerris <mike@signalwire.com>
Thu, 6 Jun 2019 15:57:41 +0000 (11:57 -0400)
src/switch_ivr_play_say.c

index 5e56262e729fd4b07fdf0c335ba2620b8b2a882c..908ca2e8aafcea006032abaddce1cf3f6286d23a 100644 (file)
@@ -2083,7 +2083,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_silence(switch_core_session_
                                switch_channel_set_variable(channel, "wait_for_silence_timeout", "true");
                                switch_channel_set_variable_printf(channel, "wait_for_silence_listenhits", "%d", listening);
                                switch_channel_set_variable_printf(channel, "wait_for_silence_silence_hits", "%d", silence_hits);
-                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "switch_ivr_wait_for_silence: TIMEOUT %d\n", countdown);
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "switch_ivr_wait_for_silence: TIMEOUT %d\n", countdown);
                                break;
                        }
                }
@@ -2105,7 +2105,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_silence(switch_core_session_
                if (countdown) {
                        if (!--countdown) {
                                switch_channel_set_variable(channel, "wait_for_silence_timeout", "false");
-                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "switch_ivr_wait_for_silence: SILENCE DETECTED\n");
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "switch_ivr_wait_for_silence: SILENCE DETECTED\n");
                                break;
                        } else {
                                continue;
@@ -2219,7 +2219,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_detect_audio(switch_core_session_t *s
                        if (sample_count <= 0) {
                                switch_channel_set_variable(channel, "detect_audio_timeout", "true");
                                switch_channel_set_variable_printf(channel, "detect_audio_hits", "%d", hits);
-                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "switch_ivr_detect_audio: TIMEOUT %d hits\n", hits);
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "switch_ivr_detect_audio: TIMEOUT %d hits\n", hits);
                                break;
                        }
                }
@@ -2255,7 +2255,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_detect_audio(switch_core_session_t *s
 
                if (hits > audio_hits) {
                        switch_channel_set_variable(channel, "detect_audio_timeout", "false");
-                       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "switch_ivr_detect_audio: AUDIO DETECTED\n");
+                       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "switch_ivr_detect_audio: AUDIO DETECTED\n");
                        break;
                }
        }
@@ -2346,7 +2346,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_detect_silence(switch_core_session_t
                        if (sample_count <= 0) {
                                switch_channel_set_variable(channel, "detect_silence_timeout", "true");
                                switch_channel_set_variable_printf(channel, "detect_silence_hits", "%d", hits);
-                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "switch_ivr_detect_silence: TIMEOUT %d hits\n", hits);
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "switch_ivr_detect_silence: TIMEOUT %d hits\n", hits);
                                break;
                        }
                }
@@ -2382,7 +2382,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_detect_silence(switch_core_session_t
 
                if (hits > silence_hits) {
                        switch_channel_set_variable(channel, "detect_silence_timeout", "false");
-                       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "switch_ivr_detect_silence: SILENCE DETECTED\n");
+                       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "switch_ivr_detect_silence: SILENCE DETECTED\n");
                        break;
                }
        }