]> 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:56 +0000 (18:49 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 23 Jun 2014 18:49:56 +0000 (18:49 +0000)
ASTERISK-23834 #close
Reported by: Richard Kenner
........

Merged revisions 417141 from http://svn.asterisk.org/svn/asterisk/branches/11

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

res/res_rtp_asterisk.c

index 6f2287c9bd8548f4ca128a8f4b5d79bfd2152c4b..97c09a3a93a48f0a49f814e4f4047d65138e6a4e 100644 (file)
@@ -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