Add support for using a jitterbuffer for RTP on bridged calls. This includes

a new implementation of a fixed size jitterbuffer, as well as support for the
existing adaptive jitterbuffer implementation. (issue #3854, Slav Klenov)

Thank you very much to Slav Klenov of Securax and all of the people involved
in the testing of this feature for all of your hard work!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-05-31 16:56:50 +00:00
parent 503486e99d
commit bb7dd96cfe
20 changed files with 983 additions and 20 deletions

13
frame.c
View File

@@ -316,6 +316,13 @@ struct ast_frame *ast_frisolate(struct ast_frame *fr)
out->samples = fr->samples;
out->offset = fr->offset;
out->data = fr->data;
/* Copy the timing data */
out->has_timing_info = fr->has_timing_info;
if (fr->has_timing_info) {
out->ts = fr->ts;
out->len = fr->len;
out->seqno = fr->seqno;
}
} else
out = fr;
@@ -380,6 +387,12 @@ struct ast_frame *ast_frdup(struct ast_frame *f)
out->prev = NULL;
out->next = NULL;
memcpy(out->data, f->data, out->datalen);
out->has_timing_info = f->has_timing_info;
if (f->has_timing_info) {
out->ts = f->ts;
out->len = f->len;
out->seqno = f->seqno;
}
return out;
}