mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Don't use hard timestamps for non-voice frames.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2659,7 +2659,7 @@ static int iax2_send(struct chan_iax2_pvt *pvt, struct ast_frame *f, unsigned in
|
|||||||
lastsent = pvt->lastsent;
|
lastsent = pvt->lastsent;
|
||||||
|
|
||||||
/* Calculate actual timestamp */
|
/* Calculate actual timestamp */
|
||||||
fts = calc_timestamp(pvt, ts, &f->delivery);
|
fts = calc_timestamp(pvt, ts, (f->frametype == AST_FRAME_VOICE) ? &f->delivery : NULL);
|
||||||
|
|
||||||
if ((pvt->trunk || ((fts & 0xFFFF0000L) == (lastsent & 0xFFFF0000L)))
|
if ((pvt->trunk || ((fts & 0xFFFF0000L) == (lastsent & 0xFFFF0000L)))
|
||||||
/* High two bits are the same on timestamp, or sending on a trunk */ &&
|
/* High two bits are the same on timestamp, or sending on a trunk */ &&
|
||||||
|
Reference in New Issue
Block a user