From b361c40c23263d75b613d7fa036cff098495be46 Mon Sep 17 00:00:00 2001 From: Alex Hermann Date: Thu, 3 Aug 2023 18:57:57 +0200 Subject: [PATCH] Don't log an error on success when sending DTMF event --- daemon/dtmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/dtmf.c b/daemon/dtmf.c index 9c88d51627..c6f5d36123 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));