From: Andrey Volk Date: Fri, 13 Mar 2020 17:28:56 +0000 (+0400) Subject: [Core] switch_rtp: reduce end call due to SRTP failure log level from error to warning. X-Git-Tag: v1.10.3^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b630dfa79e2f57a73dff4f42aaa5ac0c473a718c;p=thirdparty%2Ffreeswitch.git [Core] switch_rtp: reduce end call due to SRTP failure log level from error to warning. --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index f745d1efde..28a91ee328 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -6251,10 +6251,10 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t else msg=""; if (errs >= MAX_SRTP_ERRS) { switch_channel_t *channel = switch_core_session_get_channel(rtp_session->session); - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_ERROR, + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "SRTP %s unprotect failed with code %d (%s) %ld bytes %d errors\n", rtp_type(rtp_session), stat, msg, (long)*bytes, errs); - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_ERROR, + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "Ending call due to SRTP error\n"); switch_channel_hangup(channel, SWITCH_CAUSE_SRTP_READ_ERROR); } else if (errs >= WARN_SRTP_ERRS && !(errs % WARN_SRTP_ERRS)) {