mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 04:36:42 +00:00
[Core] switch_rtp: reduce end call due to SRTP failure log level from error to warning.
This commit is contained in:
parent
7b46e37318
commit
b630dfa79e
@ -6251,10 +6251,10 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
|||||||
else msg="";
|
else msg="";
|
||||||
if (errs >= MAX_SRTP_ERRS) {
|
if (errs >= MAX_SRTP_ERRS) {
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(rtp_session->session);
|
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",
|
"SRTP %s unprotect failed with code %d (%s) %ld bytes %d errors\n",
|
||||||
rtp_type(rtp_session), stat, msg, (long)*bytes, errs);
|
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");
|
"Ending call due to SRTP error\n");
|
||||||
switch_channel_hangup(channel, SWITCH_CAUSE_SRTP_READ_ERROR);
|
switch_channel_hangup(channel, SWITCH_CAUSE_SRTP_READ_ERROR);
|
||||||
} else if (errs >= WARN_SRTP_ERRS && !(errs % WARN_SRTP_ERRS)) {
|
} else if (errs >= WARN_SRTP_ERRS && !(errs % WARN_SRTP_ERRS)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user