Merged revisions 59076 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Tue, 20 Mar 2007 20:44:58 +0000 (20:44 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 20 Mar 2007 20:44:58 +0000 (20:44 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r59076 | file | 2007-03-20 16:42:46 -0400 (Tue, 20 Mar 2007) | 2 lines

Copy len variable as well, should fix remaining IAX2 DTMF issues.

........

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

channels/iax2-parser.c

index 5e76dd8..c491f7a 100644 (file)
@@ -960,6 +960,7 @@ void iax_frame_wrap(struct iax_frame *fr, struct ast_frame *f)
        fr->af.delivery.tv_sec = 0;
        fr->af.delivery.tv_usec = 0;
        fr->af.data = fr->afdata;
+       fr->af.len = f->len;
        if (fr->af.datalen) {
 #if __BYTE_ORDER == __LITTLE_ENDIAN
                /* We need to byte-swap slinear samples from network byte order */