Skip to content

Commit

Permalink
MT#55283 Don't log an error on success when sending DTMF event
Browse files Browse the repository at this point in the history
closes #1701

Change-Id: I1bc894bf7cc1b716ec847045dcf1bf4a676e81f7
(cherry picked from commit d4d9333)
  • Loading branch information
gaaf authored and rfuchs committed Aug 3, 2023
1 parent d03141d commit 3d8c111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/dtmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3d8c111

Please sign in to comment.