From 7075b58ee1b49c64ca449d5a3e205ecb761114f3 Mon Sep 17 00:00:00 2001 From: Mark Spencer <markster@digium.com> Date: Fri, 19 Mar 2004 08:12:04 +0000 Subject: [PATCH] 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 --- channels/chan_iax2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index cf92a1cf18..ba3c557b37 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -2659,7 +2659,7 @@ static int iax2_send(struct chan_iax2_pvt *pvt, struct ast_frame *f, unsigned in lastsent = pvt->lastsent; /* 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))) /* High two bits are the same on timestamp, or sending on a trunk */ && -- GitLab