<p></p>
<p>Thanks for digging further into it. The change was done to avoid looping back to the same function if the <code>log_custom</code> was set as custom logging backend in the core. However, if udp_send() fails for first message, likely to fail for saying the previous execution step failed. So I changed that to printing to stderr directly, just to have a way to try to troubleshoot such cases.</p>
<p>And indeed, send_udp() returns the value of the sendto() and should be positive in case of a successful operation.</p>
<p>The fixes are in master and 5.4 branches -- reference commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/f16d046f6330f897b374d9bb7dab3b2ce8eab3a7/hovercard" href="https://github.com/kamailio/kamailio/commit/f16d046f6330f897b374d9bb7dab3b2ce8eab3a7"><tt>f16d046</tt></a> .</p>
<p>Test and if still issues, reopen.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2452#issuecomment-678976694">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJG5OJ25EJEARX2BI3SCINZTANCNFSM4QGXS2CA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMZMIMHL7L3G37RKW3SCINZTA5CNFSM4QGXS2CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFB4FZNQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2452#issuecomment-678976694",
"url": "https://github.com/kamailio/kamailio/issues/2452#issuecomment-678976694",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>