diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 6f2287c9bd8548f4ca128a8f4b5d79bfd2152c4b..97c09a3a93a48f0a49f814e4f4047d65138e6a4e 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -1658,7 +1658,7 @@ static int __rtp_sendto(struct ast_rtp_instance *instance, void *buf, size_t siz if (pj_ice_sess_send_data(rtp->ice, rtcp ? AST_RTP_ICE_COMPONENT_RTCP : AST_RTP_ICE_COMPONENT_RTP, temp, len) == PJ_SUCCESS) { *ice = 1; - return 0; + return len; } } #endif