Commit 680421e3 authored by johan's avatar johan
Browse files

Fix RFC3389 Comfort noise packet timestamps

parent 574ecf89
......@@ -358,7 +358,7 @@ static void check_stun_sending(MSFilter *f) {
}
}
static void process_cn(MSFilter *f, SenderData *d){
static void process_cn(MSFilter *f, SenderData *d, uint32_t timestamp){
if (d->cng_data.datasize>0){
rtp_header_t *rtp;
/* get CN payload type number */
......@@ -370,7 +370,7 @@ static void process_cn(MSFilter *f, SenderData *d){
rtp=(rtp_header_t*)m->b_rptr;
rtp->paytype = cn_pt;
rtp_session_sendm_with_ts(d->session,m,d->last_ts);
rtp_session_sendm_with_ts(d->session,m,timestamp);
d->cng_data.datasize=0;
}
}
......@@ -418,7 +418,7 @@ static void _sender_process(MSFilter * f)
rtp_session_sendm_with_ts(s, header, timestamp);
} else if (d->mute==TRUE && d->skip == FALSE) {
freemsg(im);
process_cn(f, d);
process_cn(f, d, timestamp);
//Send STUN packet as RTP keep alive
check_stun_sending(f);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment