From acee4398d2cec3dd0c0f5e5c320a64ff81db7cda Mon Sep 17 00:00:00 2001
From: Yalu Zhang <yalu.zhang@iopsys.eu>
Date: Tue, 29 Jun 2021 15:40:14 +0200
Subject: [PATCH] Change the log level for "ubus call endpt rtp_stats" to
 reduce false error report

For an unanswered inbound call, the connection has not been created in endptmngr when
the call terminates so the RTP statistics are not available.
---
 channels/chan_brcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/channels/chan_brcm.c b/channels/chan_brcm.c
index bccbb52f59..e88806691f 100644
--- a/channels/chan_brcm.c
+++ b/channels/chan_brcm.c
@@ -3627,7 +3627,7 @@ static int endpt_get_rtp_stats(int line) {
 	ubus_free(local_ctx);
 
 	if (ret != UBUS_STATUS_OK) {
-		ast_log(LOG_ERROR, "%s(): ubus_invoke for rtp_stats failed with return value %d\n", __func__, ret);
+		ast_log(LOG_DEBUG, "%s(): ubus_invoke for rtp_stats failed with return value %d\n", __func__, ret);
 		return -1;
 	}
 
-- 
GitLab