Just to be on the safe side, don't update timestamps against anything but voice packets.
authorMark Spencer <markster@digium.com>
Fri, 19 Mar 2004 08:16:19 +0000 (08:16 +0000)
committerMark Spencer <markster@digium.com>
Fri, 19 Mar 2004 08:16:19 +0000 (08:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2472 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index ba3c557..657687e 100755 (executable)
@@ -4574,7 +4574,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
                fr.oseqno = fh->oseqno;
                fr.iseqno = fh->iseqno;
                fr.ts = ntohl(fh->ts);
-               if (ntohs(fh->dcallno) & IAX_FLAG_RETRANS)
+               if ((ntohs(fh->dcallno) & IAX_FLAG_RETRANS) || (f.frametype != AST_FRAME_VOICE))
                        updatehistory = 0;
                if ((iaxs[fr.callno]->iseqno != fr.oseqno) &&
                        (iaxs[fr.callno]->iseqno ||