From 09bbe4b2f54043a9d3ff073e17e40e66199a01fb Mon Sep 17 00:00:00 2001 From: Alex Hermann Date: Thu, 3 Aug 2023 18:57:57 +0200 Subject: [PATCH] MT#55283 Don't log an error on success when sending DTMF event closes #1701 Change-Id: I1bc894bf7cc1b716ec847045dcf1bf4a676e81f7 (cherry picked from commit d4d93332a4605be44afc7c772263028dc0c4894c) --- daemon/dtmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/dtmf.c b/daemon/dtmf.c index 3fa40c0d4e..154485cbb1 100644 --- a/daemon/dtmf.c +++ b/daemon/dtmf.c @@ -163,7 +163,7 @@ static void dtmf_end_event(struct call_media *media, unsigned int event, unsigne udp_dst = &rtpe_config.dtmf_udp_ep; if (udp_dst) - if (socket_sendto(&dtmf_log_sock, buf->str, buf->len, udp_dst)) + if (socket_sendto(&dtmf_log_sock, buf->str, buf->len, udp_dst) < 0) ilog(LOG_ERR, "Error sending DTMF event info to UDP destination %s: %s", endpoint_print_buf(udp_dst), strerror(errno));