]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk: Return the length of data written when sending via ICE instead...
authorJoshua Colp <jcolp@digium.com>
Mon, 23 Jun 2014 18:49:14 +0000 (18:49 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 23 Jun 2014 18:49:14 +0000 (18:49 +0000)
ASTERISK-23834 #close
Reported by: Richard Kenner

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@417141 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_rtp_asterisk.c

index 7f731a894dc97bf3d753d3558838afe50f598d20..22a15ef21e0714c671e3a935aba3fe468b8c64cf 100644 (file)
@@ -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