From: Joshua Colp Date: Mon, 23 Jun 2014 18:49:14 +0000 (+0000) Subject: res_rtp_asterisk: Return the length of data written when sending via ICE instead... X-Git-Tag: 11.11.0-rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e642e66d117cd125432cb77dea6041fd03c40a6;p=thirdparty%2Fasterisk.git res_rtp_asterisk: Return the length of data written when sending via ICE instead of 0. ASTERISK-23834 #close Reported by: Richard Kenner git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@417141 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 7f731a894d..22a15ef21e 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -1657,7 +1657,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